Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7168

PyCharm does not display Chinese characters although UTF-8 encoding

$
0
0

I have just switched to using PyCharm a couple of days ago. I have installed the community edition on a Linux virtual machine (i.e. Ubuntu 9.4.0). This is the About of my installed Pycharm:

PyCharm 2024.1 (Community Edition)Build #PC-241.14494.241, built on March 28, 2024Runtime version: 17.0.10+8-b1207.12 amd64VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.Linux 5.4.0-131-genericGC: G1 Young Generation, G1 Old GenerationMemory: 4096MCores: 72Registry:  ide.experimental.ui=trueCurrent Desktop: Undefined

All the Chinese characters in my Python scripts look like this:

enter image description here

I have checked that the encoding of the files is UTF-8 in the project setting, but it does not seem to be taken into account.

I have also tried some solutions suggesting changing the font of the editor or adding an environment variable like in this question but these didn't work (the latter one is more for the console rather than for the code files).

To give more details, I am sshing the VM in which Pycharm is installed from a Windows machine through Mobaxterm.

I have installed Pycharm for Windows on my Windows machine and opened the same files, which perfectly display the characters, which makes me think it is about the OS.

Any tips?


Viewing all articles
Browse latest Browse all 7168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>