在我的java项目中,我需要使用阿拉伯文本和字符串,但是文本变成了"???????"
,那么有什么问题呢?如何解决这个问题呢?
谢谢
发布于 2011-05-07 17:45:29
可以使用启动选项设置Netbeans
将其放入netbeans_default_options
的netbeans.conf
中
-J-Dfile.encoding=UTF-8
最后,它应该看起来像
netbeans_default_options="..... -J-Dfile.encoding=UTF-8"
希望能对你有所帮助
发布于 2014-05-14 05:04:07
以下是将Netbeans中的缺省字符集设置为UTF-8 (在Windows中)的说明:
1 Go to C:\Program Files\netbeans-x.x\etc
2 Open netbeans.conf in Notepad.
3 On the netbeans_default_options add: -J-Dfile.encoding=UTF-8. (make sure to put it within the quotation marks)
4 Project properties -> Build -> Compiling ->
Additional compiler options) text box.- add: -encoding UTF-8
5 You can also check to make sure that you have increased the memory allocation for Netbeans by looking at the netbeans_default_options line. The default max is 128MB. We have increased this to 256MB.
发布于 2014-05-30 11:37:50
Ubuntu go目录ex.
sudo gedit /usr/local/netbeans-8.0/etc/netbeans.conf
添加
netbeans_default_options="-J-Dfile.encoding=UTF-8“
保存Fin
https://stackoverflow.com/questions/5922845
复制