プロパティファイル


プロパティファイルの作成

ユニコードエスケープするには、コマンドがあり
JDKをインストールしたフォルダの下の bin に native2ascii.exe で行います

test_jp.properties を用意して
key=日本語
と記述します。(WindowsならばShift_JISで記述する)

native2ascii.exe test_jp.properties test.properties
(native2ascii.exe にパスが通っている必要があります。)

test.properties が作成され
key=\u65e5\u672c\u8a9e
に変換されます。

逆は
native2ascii.exe -reverse test.properties test_jp.properties