注意:字符编码为 UTF-8
Function URLEncode.Encode(const v:String,isAnsi:boolean):String;
Function URLEncode.Decode(const v:String,isAnsi:boolean):String;
Function Base64.Encode(const v:String):String;
Function Base64.Decode(const v:String):String;
URLEncode.Encode('abc你好123');
==>
abc%E4%BD%A0%E5%A5%BD123
URLEncode.Decode('abc%E4%BD%A0%E5%A5%BD123');
==>
abc你好123
URLEncode.Encode('abc你好123',True);
==>
abc%C4%E3%BA%C3123
URLEncode.Decode('abc%C4%E3%BA%C3123',True);
==>
abc你好123
urlencode 支持 emoji 符号的解码
URLEncode.Decode('a中国b🀅🀅🀅c%E4%BD%A0%E5%A5%BD123');
==>
a中国b🀅🀅🀅c你好123
Base64.Encode('abc你好123');
==>
YWJj5L2g5aW9MTIz
Base64.Decode('YWJj5L2g5aW9MTIz');
==>
abc你好123