glow
glow copied to clipboard
Chinese language characters are partially garbled
Hi I added a Chinese language file based on the English language, but when I tested it, I found that the Chinese characters would have garbled characters at the end. You can check it and fix it, thanks to your work and this free program.
I am using Windows 10 22H2 - 2009 64-bit Chinese system。
Hi I added a Chinese language file based on the English language, but when I tested it, I found that the Chinese characters would have garbled characters at the end. You can check it and fix it, thanks to your work and this free program.
I am using Windows 10 22H2 - 2009 64-bit Chinese system。
Hello,
Thanks for the translation. Can you send me the text that seems to be wrong here?
I will test it.
Hi I added a Chinese language file based on the English language, but when I tested it, I found that the Chinese characters would have garbled characters at the end. You can check it and fix it, thanks to your work and this free program. I am using Windows 10 22H2 - 2009 64-bit Chinese system。
Hello,
Thanks for the translation. Can you send me the text that seems to be wrong here?
I will test it.
I submitted a Chinese language pull request that you can use for testing. Thank you for your work.
I think the issue is probably cause by the preset length of StringBuilder not matching the actual utf-8 bytestream length which needs to be processed. Under utf-8, one chinese character consumes 3 bytes, if the number of chinese character strings is odd (e.g 处理器),the last character 器's bytestream will be terminated uncorrectely, therefore causing a display error
In applications, using UTF-8 encoding will be more compatible, but garbled characters may also occur due to insufficient bytes.
In some of the applications developed based on the QT platform that I deal with, in the translated binary files, garbled characters often appear due to encoding problems; and some applications that use UTF-8 will also be truncated due to insufficient byte length, and the same is true. Garbled characters similar to Chinese characters will appear.
The way to solve these problems is basically to complete the byte length and select the correct encoding characters.
The Glow application uses the .ini language configuration file, which uses UTF-8 encoding. The front part can be displayed correctly, but the latter part should be considered because the character byte length is not enough.
Update:
I am still working on the problem. I am running some tests.
If I get a positive result, I will work on fixing the problem.
I've made all the corrections that can be made. There is nothing extra to do anymore.
It may be related to the file encoding of the ini file.
Chinese spelling bug has been fixed. Chinese language will be available with Glow v24.11.