How to edit a file with non-UTF-8 encoding?


I got a txt file in windows-1252 encoding. When I edit this file in IntelliJ IDEA UA on Linux (with UTF 8 system encoding), the file becomes corrupted.
I can edit it just fine with gedit, but not with IntelliJ.

Is there a way to specify the encoding of a single file like in Eclipse?

Comment actions Permalink


Encoding can be set in Settings | File Encodings. You may specify encoding for all files of the project in combobox IDE Encoding, or for a single file in project tree in Default Encoding column.

Best regards,
Shaverdova Elena

Comment actions Permalink

Thank you, that solved the problem :)


Please sign in to leave a comment.