`
sailing04
  • 浏览: 61405 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Eclipse中js文件含中文无法保存的问题解决

阅读更多
js文件含中文时会报Save could not be completed,而无法保存。

因为js 文件默认是 ISO8859-1 编码,解决方法如下:


在 Window 菜单里面找到 Preferences , 在打开的窗口左侧找到 General -> Content Type -->text -->javascript , 在最下面的 Default Encoding 里面,将 ISO8859-1 改为 UTF-8 ,然后点击右侧的 Update ,然后点击 OK 保存即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics