[英]Intellij System.out.println question marks
I am trying to run Hebrew
words by System.out.println
- and i get question marks: ???? 我试图通过
System.out.println
运行Hebrew
单词 - 我得到问号:????
This issue prevent me to make if statement - check if string equals to something on Hebrew. 这个问题阻止我做if语句 - 检查字符串是否等于希伯来语中的内容。
String one = "בוקר";
String two = "בוקר";
if (one.equals(two)) {
System.out.println("בוקר");
}
//just for test the question marks:
System.out.println("בוקר");
I goes to Other settings -> Default settings -> Editor -> File Encodings ->
Tried to put utf-8
, and after this failed i tried to put windows-1255
我转到
Other settings -> Default settings -> Editor -> File Encodings ->
试图把utf-8
,并在此失败后我试图把windows-1255
Still, get question marks. 仍然,得到问号。
add 加
-Dfile.encoding=UTF-8
when you start the program 当你启动程序时
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.