LoginSignup
12
11

More than 5 years have passed since last update.

IntelliJ IDEA でコンソールのTomcatログが文字化けしたときに設定した3点

Posted at

Mac上の開発環境で文字化けしたので。

  1. IDE Settings - Appearance - Override default fonts by (not recommended) にチェック、日本語を含むフォントを指定する

  2. IDE Settings - Editor - Colors & Fonts - Console Font でも同様に日本語を含むフォントを指定する

  3. ツールバー内の Tomcat ドロップダウンメニューから Edit Configrations ... を開き、
    Server - VM options-Dfile.encoding=UTF-8 を指定する

3番あたりの設定は、そのプロジェクトにスポットで対応するかんじなので、Java大好きな人はもっとグローバルに大元から設定できる方法で対応したほうが良さそうです。

12
11
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
12
11