java - IntelliJ 14 keeps switching encoding to UTF-8 -
i have project encoded in iso-8859-1 (an historic choice can't change).
i set ide, intellij 14.1.1 ultimate, in iso-8859-1 everywhere : my encoding setting
(my code in folder specificaly set in iso-8859-1)
the encoding.xml looks good:
<?xml version="1.0" encoding="utf-8"?> <project version="4"> <component name="encoding" defaultcharsetforpropertiesfiles="windows-1252"> <file url="file://$project_dir$" charset="iso-8859-1" /> <file url="file://$project_dir$/mydir" charset="iso-8859-1" /> <file url="file://$project_dir$/mydir/...aspecificjavafilethativetroublewith.java" charset="iso-8859-1" /> <file url="project" charset="iso-8859-1" /> </component> </project>
my .idea not on commited on git because it's not standard ide.
but when work on file, intellij keeps switching encoding utf-8 on save. converted file iso-8859-1 several times, opened editor sure no utf-8 char remaining. despite efforts, after few edits, file automatically switched utf-8.
i restart ide several times, no change.
any hint?
the answer wasn't there, had answer of 1 of friend intellij guru , advice me check de .editorconfig @ project root. , right, charset utf-8 , when switched iso-8859-1 stopped converting files utf-8.
i guess disabling editorconfig plugin works too.
Comments
Post a Comment