Jump to content

URL Encode? Special characters


nyke0
 Share

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...