Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.43k stars 266 forks source link

GUI text garbled after change language to Chinese (TW) #230

Open sonyandy123 opened 2 years ago

sonyandy123 commented 2 years ago

Dev-C++ 6.3 After change language to Chinese (TW):

devcpp_6 3

Expect display (Dev-C++ 5.11):

devcpp_5 11
pmcgee69 commented 2 years ago

Sorry, I don't read chinese ... I assume these are the areas where the problem occurs :

image

sonyandy123 commented 2 years ago

Sorry, I don't read chinese ... I assume these are the areas where the problem occurs :

image

They all have problems, this is "Lang\Chinese_TC.lng" language file, open by Notepad++ and using big5 encode (codepage 950)

devcpp6

You can see that their text is different, all of them are garbled

Jisu-Woniu commented 2 years ago

Also happened in Chinese(CN), maybe you should use UTF-8 for lng files.

harusakura924 commented 1 year ago

I also encountered the same problem, and the test results are provided as follows:

  1. Change the file Chinese_TC.lng to UTF-8 encoding, he still displays garbled characters.
  2. Change the file Chinese.lng to UTF-8 encoding, and it will also become garbled characters.
  3. Change the file Chinese_TC.lng to GB2312 encoding, and it will display part of the text normally (because some characters of Chinese (TW) are only supported by BIG5, or even only UTF-8).

The above conclusions prove that the reason why Chinese (TW) cannot be displayed normally is because of the use of big5 encoding (codepage 950). In the end, it is recommended that Chinese.lng and Chinese_TC.lng can support UTF-8, otherwise there will still be problems that some difficult characters cannot be displayed.

Supplementary Note: Although English.lng adopts UTF-8, the actual Chinese input still displays garbled characters.