0

When I enter or paste a simplified Chinese character, it is displayed weirdly. It looks like a 'p' character enclosed in a rectangle. Please see the picture attached. But I copy the character and paste it in other text editors, it is displayed correctly. It happens only for simplified Chinese characters, not for traditional.

This started when I checked 'Beta: use Unicode UTF-8 for the support of world langauges' in Change system locale, Country or Region in Settings of Windows 10.

chinese displayed weirdly

4
  • I don't have an answer but without you actually providing your operating system, nobody else will either. I can only assume that this is windows but who knows? Feb 11, 2022 at 3:38
  • 1
    Can you give some example characters?
    – harrymc
    Feb 11, 2022 at 10:38
  • @SeñorCMasMas As mentioned in the main question and tags, my OS is Windows 10.
    – user67275
    Feb 12, 2022 at 9:13
  • @harrymc The echo command in the question was 你好. The '你' character was not displayed correctly.
    – user67275
    Feb 12, 2022 at 9:15

1 Answer 1

3

You need to set the code-page of the Command Prompt to Chinese with the chcp command:

chcp 936

Here is how it looks:

enter image description here

3
  • I have to use multiple languages not only Chinese. In the webpage you referred to, chcp 850 is for multi-language support. I will try this.
    – user67275
    Feb 13, 2022 at 10:01
  • It won't work - 850 is only "Multilingual (Latin I)", so basically only European Latin-based languages. You might need to switch code-pages as needed.
    – harrymc
    Feb 13, 2022 at 10:08
  • I also checked chcp 65001 which is UTF-8, but your character only displayed as a place-holder rectangle.
    – harrymc
    Feb 13, 2022 at 10:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .