Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij, switch off ascii handling for properties

Tags:

Unfortunatelly I am not able to find an option in Intellij which will enable me to show ascii escaped characters in properties-files (*.properties) (UTF-8) for translations, meaning intellij automagically always shows the result of the escaped characters, but I need to confirm the escapeings without the use of an external viewer (vi, mate, etc).

Also it would be nice for the diff viewer in intellij to actually show the changes towards escaped characters.

Here is an example for the escaped string:

key=Nak\u0142ad

Intellij is always showing it like this:

key=Nakład

Even when opening the *.properties files in text editor mode, the strings are escaped...

Edit: Im am using

IntelliJ IDEA 2016.1.2 Build #IU-145.972, built on May 14, 2016 JRE: 1.8.0_73-b02 x86_64 JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

like image 439
chris polzer Avatar asked Jul 07 '16 14:07

chris polzer


1 Answers

From https://www.jetbrains.com/help/idea/2016.1/configuring-encoding-for-properties-files.html, click on InteeliJ menu then go to Preferences (mac directions). Then in the upper left search for "file encoding" then you should see your project files on the right. Browse to your property file on the right, then click on it and look at the bottom right for a check box that says "Transparent native-to-ascii conversion" make sure that is unchecked.

These are screen shots from my intellij on my mac. I'm running intellij 15.0.6.

enter image description here

enter image description here

like image 101
James Oravec Avatar answered Sep 28 '22 02:09

James Oravec