recurring encoding problem

Using #9920, with a default UTF-8 encoding, some project having the
whole root encoding set to windows-1252, we have recurrent problem of
files changing encoding to UTF-8.

For some file, encoding appear as UTF-8 and is grayed out. To changed
it back to windows-1252, I have to modify the file, then encoding box
becomes ungrayed, change it to windows-1252. Then the encoding box
returns to UTF-8 grayed! The with a second change, the box finally
display the right windows-1252 encoding.

A rule is added to the project file to specificaly set this particular
file encoding to windows-1252, on top of the encoding rule applied to
the whole source root.

What could cause these encoding mismatches?
We have some developpers that don't use the shared project, and could
potentially edit the file using another encoding. But while this can
create discrepencies in display, I don't see why that would change
anything in IDEA since files are commited to SVN. SVN don't store any
encoding for file content as far as I understand.

thanks for any tip
-nodje

2 comments
Comment actions Permalink

Hello nodje,

Can it be Settings / File encodings / Autodetect UTF encoded files? It searches
for characters, specific for UTF-8 in the file. You can try to set it off.

Using #9920, with a default UTF-8 encoding, some project having the
whole root encoding set to windows-1252, we have recurrent problem of
files changing encoding to UTF-8.

For some file, encoding appear as UTF-8 and is grayed out. To changed
it back to windows-1252, I have to modify the file, then encoding box
becomes ungrayed, change it to windows-1252. Then the encoding box
returns to UTF-8 grayed! The with a second change, the box finally
display the right windows-1252 encoding.

A rule is added to the project file to specificaly set this particular
file encoding to windows-1252, on top of the encoding rule applied to
the whole source root.

What could cause these encoding mismatches?
We have some developpers that don't use the shared project, and could
potentially edit the file using another encoding. But while this can
create discrepencies in display, I don't see why that would change
anything in IDEA since files are commited to SVN. SVN don't store any
encoding for file content as far as I understand.
thanks for any tip
-nodje

Alexander.


0
Comment actions Permalink

good idea Alexander, I'll try that for a while, see how it behaves and if we still have the problem.

0

Please sign in to leave a comment.