0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSLgでウインドウの日本語が化けるときの対処

Posted at

WSLgで表示したウインドウの日本語が化けることがある

WSLgでは、Xクライアントを起動するとウインドウの日本語が化ける。
pythonのtkinterで日本語を表示してみるとこんな感じ・・・

Pic01.jpg

本当はこんな感じで表示される

Pic02.jpg

上の画像のように日本語が表示されない場合

管理者権限で下記コマンドを実行してフォントをインストールする

apt install fonts-noto-cjk

その後、コマンドプロンプト等でUbuntuをシャットダウン

wsl --shutdown

これで表示されるようになる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?