Garbled texts on WSL GUI application

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?

3

1 Answer

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.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like