1

Non-English characters are garbled on the WSL GUI application.

For example, I created a text file that contains foreign characters like this:

$ touch yoi.txt
$ echo "English한국어日本語" > yoi.txt
$ gedit yoi.txt

Any suggestions?

Reddy Lutonadio
  • 17,120
  • 4
  • 14
  • 35
LevelRin
  • 13
  • 3
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 10 '21 at 17:32
  • 2
    Does this answer your question? [UTF8 characters in windows 10 bash terminal](https://superuser.com/questions/1108443/utf8-characters-in-windows-10-bash-terminal) – harrymc Dec 10 '21 at 17:40
  • @harrymc Doubtful. That question is for terminal-based apps. This particular question is about garbled text in WSLg (gedit). – NotTheDr01ds Dec 10 '21 at 20:40

1 Answers1

3

That's not really garbled – that's just how Linux programs display characters that they don't have any fonts for. The hexadecimal digits inside each box correspond to Unicode codepoints for the character. For example:

You should install more fonts in your Linux distribution. If you're using Ubuntu, sudo apt install fonts-noto-cjk. The Noto font set supports many languages.

Or if you know that a specific font is needed, you can copy .ttf or .otf files to ~/.local/share/fonts/ in Linux. You could even copy all the Windows fonts from C:\Windows\Fonts if you want.

NotTheDr01ds
  • 17,574
  • 4
  • 44
  • 81
u1686_grawity
  • 426,297
  • 64
  • 894
  • 966