您的位置:首页 > 移动开发

Eclipse:some characters cannot be mapped using "ISO-8859-1" charater encoding

2013-07-15 09:54 323 查看
Eclilpsle 编辑js文件时出现一下错误的解决方案:

Some characters cannot be mapped using "ISO-8859-1" charater encoding.

Either change the encoding or remove the characters which are not 

supported by the "ISO-8859-1" character encoding

.


解决方案:

 1.  Window -->Preferences

2. 在“type filter text“的框框里输入”Content Types 或 General——》Content Types

3. 点击右边的Text,选择Java Properties File,看一下 下面的两个选项 
 <1>:File associatios:   ----- 看看里面有没有 你需要的文件类型, 
默认的是*.porperties(locked)
                我需要的*.js ,所以这时点击 Add 按钮,自己添写filetype,  我写的是
*.js 哦,点击ok
          <2>:Default encoding: ----- 这里默认的值不是utf-8, 也是需要自己更改,删除掉原来的,写上  你需要的,然后点击Update
,就好了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐