Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1057

How to display unicode characters in NetBeans 21

$
0
0

I'm trying to use unicode character with netbeans but, when i run the project it only show me '?'. But if I use Intellij all runs perfectly. I do some research but I didn't find any solutions.

I also tried to add -J-Dfile.encoding=UTF-8 inside netbeans.conf but nothing change.

That's the code:

public class Unicode {    public static void main (String [ ] args){        String unicodeMessage ="\u2654 " + // white king"\u2655 " + // white queen"\u2656 " + // white rook"\u2657 " + // white bishop"\u2658 " + // white knight"\u2659 " + // white pawn"\n" +"\u265A " + // black king"\u265B " + // black queen"\u265C " + // black rook"\u265D " + // black bishop"\u265E " + // black knight"\u265F " + // black pawn"\n" ;        String unicodeGeometry = "\uD83D\uDFE8";        System.out.println(unicodeMessage);        System.out.println(unicodeGeometry);    }}

I tried to modify netbeans.conf adding -J-Dfile.encoding=UTF-8 at the end of the netbeans_default_options block. I also runned the netbeans.conf file like administrator


Viewing all articles
Browse latest Browse all 1057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>