colinta / SublimeStringEncode

Converts characters from one "encoding" to another using a transformation (think HTML entities, not character encodings)
Other
150 stars 22 forks source link

base64encode command will change multibyte string into unicode string first, and then do the encoding #43

Open jjsty1e opened 3 years ago

jjsty1e commented 3 years ago

for example(Chinese words):

百度

command: StringEncoding: Base64 Decode, got:

XHU3NjdlXHU1ZWE2

actually it's the result of \u767e\u5ea6, the right result is below:

55m+5bqm
jjsty1e commented 3 years ago

or maybe we don't need this raw unicode encoding?

https://github.com/colinta/SublimeStringEncode/blob/875ad7656257000af8ebd219ada3c9e592ad5679/string_encode.py#L275