在我的java项目中,我需要使用阿拉伯语文本和字符串,但是文本变成了这样"???????"
,那么有什么问题吗?以及如何解决这个问题?
谢谢
您可以使用启动选项设置您的 Netbeans
将其netbeans.conf
放入netbeans_default_options
-J-Dfile.encoding=UTF-8
最后它应该看起来像
netbeans_default_options="..... -J-Dfile.encoding=UTF-8"
希望它会帮助你
Ubuntu go 目录前。
sudo gedit /usr/local/netbeans-8.0/etc/netbeans.conf
添加
netbeans_default_options="-J-Dfile.encoding=UTF-8"
保存鳍
以下是将 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.
请按照以下问题解决如何在 Netbeans 中支持 UTF 8 达里语、普什图语、波斯语和阿拉伯语