As the title says, I use Netbeans 8.0.2 on Windows 7. I saw a lot of different topics about it and tried different solutions, but it didn’t help anyone.
Thus, characters such as [š, ć, đ, ž, È, æ] are displayed as or squared depending on the font. Here is what I tried:
- I set
-J-Dfile.encoding=UTF-8 in ../etc/netbeans.conf - I checked the project settings and the encoding is set to utf-8

When I read the file, I use the following code:
BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8")); or using Charset.forName("UTF-8") or StandardCharsets.UTF_8 or Charset.forName("ISO8859-2") nothing helped.
Anyone have an idea what could be another problem?
source share