문제

I want to use Persian characters to show user the letters in Persian; but I just have received question mark instead of Persian characters. How can I use these characters in Java console? (I use eclipse-Kepler)

도움이 되었습니까?

해결책

If you mean the eclipse console it should by default support UTF8 (mine does). If it doesn't here is a link with pictures describing how to change console output encoding. Works fine with the arabic letter phe:

String s = "\u0641";
System.out.println(s);

Out

ف
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top