I have a Java application, I did it in NetBeans. The problem is when there are strings with accents. When I run NetBeans, it shows everything perfect (the string with accents correctly), but when I create the JAR and execute it, the strings are shown distorted (when it has an accent), for example:
Instead of:
pode atribuir expressão
Appears:
pode atribuir expressão
NOTE: Strings are shown in JTextPane
, I have to use it because of the coloring of the strings. In Netbeans is configured to be UTF-8, even though I put Windows 1252 or 1256 still happens that error in JAR.
Is there any way to fix this?