Java files set to UTF-8 but opening as ANSI (cp1252)
Posted: Thu Jan 02, 2020 1:57 pm
In Configure > Preferences > Document classes > Java, I have specified UTF-8 as the default character encoding. However, when I open a Java source file which includes non-ASCII characters such as the copyright sign © (\u00A9), Textpad shows this as the two-character sequence © (which is 0xC2 0xA9, the two-byte UTF-8 representation of \u00A9). When I press Alt-Enter to display the document properties, it cheerfully tells me that the encoding is 1252 (ANSI - Latin 1).
Other editors, even the accursed Notepad, recognise the file as UTF-8 and display it correctly. How can I convince Textpad to do the same and use UTF-8 as I already told it to do?
Other editors, even the accursed Notepad, recognise the file as UTF-8 and display it correctly. How can I convince Textpad to do the same and use UTF-8 as I already told it to do?