Opening file with wrong encoding

Answered

Hi, i have some gsp file with ISO8859-1 encoding, with the charset tag

<%@ page contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>

and intellij have the right charset in the corner 

When i write the characters are in the right encoding, also when i close the file tab and open again from the project structure view (alt+1) but when i close Intellij and open again the file are opened with UTF-8 showing the � character everwhere, but the file still in ISO-8859-1 (checked with the notepad++) until i write something in the editor and the unknown ISO characters overwrite with � utf-8 character.

 

0
1 comment

Could be related https://youtrack.jetbrains.com/issue/IDEA-148645 Do you have non-asci characters in file?

Please make sure to check with version from https://www.jetbrains.com/idea/download

If issue remains report at https://youtrack.jetbrains.com/issues/IDEA with a sample file, idea.log and screenshot of File | Settings | Editor | File Encodings settings.

0

Please sign in to leave a comment.