Menu

#58 Character encoding error in saved file.

v1.0 (example)
open
nobody
5
2014-07-22
2014-07-22
Tout
No

The original intention of content in or <labelText> save in .violet.html file encoded as UTF-8, now the encoding process was redundant and prone to error.

For example, the current code page of my Windows is CP936 (Chinese GBK charset encoding),and UTF-8 encoding of "test 中文" is "74 65 73 74 20 E4 B8 AD E6 96 87". But now it was written as "74 65 73 74 20 E6 B6 93 EE 85 9F E6 9E 83 ", the cause is Violet treating UTF-8 byte stream as GBK and encoding it again.

Please refer to the attachment below.

1 Attachments

Discussion


Log in to post a comment.