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?

IntelliJのmessage.propertiesに書かれている日本語が?になってしまう場合の対処

Posted at

起こってしまう現象

message.properties
login.wrongInput=ログインIDとパスワードの組み合わせが間違っています

↑これが
↓こう出力されてしまう
????ID?????????????????????

対処法

1,InteliJの設定からエディター>ファイルエンコーディング
2,「ネイティブコードからASCIIコードへの自動変換を行う」チェック
3,再実行(必須か不明ですが、、、)

message.propertiesの中身が

login.wrongInput=????ID?????????????????????

になっているため、書き直すし、アプリケーションを再実行すると解決します。

原因

はIntellijが自動的にUTF-8からASCIIに文字コードを変換していることが原因らしいです。

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?