This FAQ entry in the NetBeans wiki might be of help. See also the General Queries API and, in special, the FileEncodingQuery.
DataEditorSupport and/or ClonableEditor using UTF-8
-
05-12-2021 - |
Question
I have a Netbeans platform program that uses a custom DataEditorSupport and a custom ClonableEditor. The files it reads are UTF-8 encoded and the editor that is created does not seem to be using UTF-8.
For example my file has
"TêSt"
and the editor displays this as
"TêStÃ"
How can I get the DataEditorSupport or ClonableEditor to use correctly read UTF-8?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow