Code: Select all
v19.00.0313 - 2018-07-07 19:43
+ SC urlencode enhanced: Now you can URL-encode (aka "percent-encode") all
non-ASCII characters as their UTF-8 equivalents.
Syntax: urlencode(string, flags)
flags: (bit field)
1 = URL-encode according to RFC 1738 (space => %20)
Else (no 1):
URL-encode according to RFC 1738, except space => +
2 = URL-encode all non-ASCII characters as their UTF-8 equivalents
Remarks:
Acc. to MS docs this flag (URL_ESCAPE_AS_UTF8) is Win7 (sic!) or later.
Example:
text urlencode(<clp>, 2); //encode some non-ASCII characters in the clipboard
+ SC urldecode enhanced: Now you can decode strings that were encoded by
using the URL_ESCAPE_AS_UTF8 flag.
Syntax: urldecode(string, flags)
flags: (bit field)
1 = URL-decode according to RFC 1738 (%20 => space)
It will NOT convert + => space
Else (no 1):
URL-decode according to RFC 1738, except + => space
But it also converts %20 => space
2 = URL-decode strings that were encoded by using the
URL_ESCAPE_AS_UTF8 flag.
Remarks:
Acc. to MS docs this flag (URL_UNESCAPE_AS_UTF8) is Win8 (sic!) or later.
Example:
text urldecode("%E5%8C%97%E4%BA%AC", 2); //returns "Beijing" in Chinese characters
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.