Jump to content
Sign in to follow this  
nyke0

URL Encode? Special characters

Recommended Posts

​test

http://www.fileformat.info/info/unicode/char/200B/index.htm

the string i mean is: zero width space

I need to decode it in:

%E2%80%8Btest

But I get always:

%4C%75%6D%69

my func

MsgBox(0, "", _WebEncode('test'))

Func _WebEncode($string)
    Local $return = "", $split = StringToASCIIArray($string, Default, Default, 2)
    For $i = 0 To UBound($split) - 1
        $return &= '%' & Hex($split[$i], 2)
    Next
    Return $return
EndFunc   ;==>_WebEncode
Edited by nyke0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...