如何在NetBeans 8.0中更改默认编码 [英] How to change default encoding in NetBeans 8.0
问题描述
我的html文档中有这个标签:
< meta charset =utf-8>
但是!如附图所示,NetBeans通知会警告我有关编码问题。
内部编码声明utf-8不符合文档的实际编码(windows-1250)。
我在NetBeans中通过new file功能创建了index.html。在项目属性中有UTF-8编码,所以我认为应该是UTF-8。我真的不知道'windows-1250'来自哪里!
在哪里可以找到一些选项来更改NetBeans 8.0中的默认编码或甚至当前的文件编码?
提前谢谢...
Danny 提供的href =https://stackoverflow.com/a/9085940/3820049>解决方案
转到Netbeans主页中的etc文件夹 - >打开netbeans.conf文件,并在netbeans_default_options上添加以下行:
-J-Dfile.encoding = UTF-8
重新启动Netbeans,它应该是UTF-8
检查去帮助 - >关于并检查系统:运行在x86上的Windows Vista版本6.0; UTF-8; nl_NL(nb)
I'm wondering if I can change default encoding in NetBeans 8.0... I searched a lot but I haven't find a way how to change the encoding in this version of NetBeans.
I have this tag in my html document:
<meta charset="utf-8">
BUT! As you can see on attached image, NetBeans notice is warning me about an encoding problem.
Internal encoding declaration "utf-8" disagrees with the actual encoding of the document ("windows-1250").
I created index.html by "new file" function in NetBeans. There is UTF-8 encoding in project properties, so I think it should be UTF-8. I really don't know where that 'windows-1250' came from!!
Where I can find some option to change default encoding or even current file encoding in NetBeans 8.0?
Thank you in advance...
Go to etc folder in Netbeans home --> open netbeans.conf file and add on netbeans_default_options following line:
-J-Dfile.encoding=UTF-8
Restart Netbeans and it should be in UTF-8
To check go to help --> about and check System: Windows Vista version 6.0 running on x86; UTF-8; nl_NL (nb)
这篇关于如何在NetBeans 8.0中更改默认编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!