How can change encoding af the file?

Idea have define wrong file encoding UTF-8 instead of CP-1251. After i made some chages in file. Idea have fix the file encoding and now I can't make encoding right.
Even if I will delete this file and checkout it from CVS file will be in UTF-8 without ability to change encoding.
What should I do to return right encoding to the file?

2 comments
Comment actions Permalink

Hi Alexey,

Please check "Settings | File Encodings" settings page -- find the file and specify custom encoding (but the same should be available via status bar (where the encoding is) or even via "File | Reload 'UTF-8' encoded file in another encoding").

In case IDE does not allow you to change the encoding for that file at all -- please uncheck "Autodetect UTF-encoded files" and restart IDE -- usually this helps.

0
Comment actions Permalink

Thanks a lot. It helps.

0

Please sign in to leave a comment.