チケット #36188

Properties Editor breaks Encoding definition

登録: 2016-03-21 18:37 最終更新: 2016-03-21 18:37

報告者:
(匿名)
担当者:
(未割り当て)
チケットの種類:
状況:
オープン
コンポーネント:
(未割り当て)
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
9 - 最高
解決法:
なし

詳細

I've been tracking down encoding problems in our Eclipse installation for the last two hours and I finally figured our that the Properties Editor Plugin seems to be the culprit. First of all, let me explain what behaviour we've been experiencing:

Since Java Properties Files have to be ISO-8859-1 encoded, we've been looking for a way to tell Eclipse to treat every Properties file the same way. As you certainly know, Eclipse provides a Content-Type feature which allows to centrally set the Encoding for certain file types. The *.properties file entry is set to ISO-8859-1 by default (as one would expect). However, all property files in our project were showing the following text file encoding: "Default (inherited from container: UTF-8)".

At some point we figured out that the same project in the exact same workspace shows a different value if we use a completely blank Eclipse JEE (i.e. no additional plugins or other changes). Using our blank eclipse the value for the properties text file encoding is: "Default (determined from content-type: ISO-8859-1)". Obviously, we consider this the expected behavior.

When we uninstalled the Properties Editor Plugin in our "normal" Eclipse both applications displayed the same behavior when we opened the properties dialog for a *.properties file. In both Eclipses the values for text file encoding was "Default (determined from content-type: ISO-8859-1)".

Note: this didn't only happen for *.properties files but also for other file types. It seems like the Properties Editor plugin somehow sabotages the algorithm used by Eclipse to determine the proper encoding for a file. It seems like content-types are ignored when the Properties Editor is used.

添付ファイルリスト

添付ファイルはありません

チケットの履歴 (2 件中 2 件表示)

2016-03-21 18:37 更新者: None
  • 新しいチケット "Properties Editor breaks Encoding definition" が作成されました
2016-03-21 18:38 更新者: None
コメント

Sorry, I forgot to specifiy the Eclipse version. We're using Eclipse for JEE Developers 4.5.2.

編集

ログインしていません。ログインしていない状態では、コメントに記載者の記録が残りません。 » ログインする