some character can not mapped using "iso-8859-1" character encoding ......
1.右键选种 该项目,或该文件
2.点击 properties ,看到左边 第一个 选项 info 了吧。
左边就是该选项的详细信息
3.更改里面的 Text File Encoding
选择 other 里面的 utf-8 (推荐喽)
然后ok了。
方法一: 使用eclipse的jinto插件编辑,会自动调用java的native2ascii把文件转码。
方法二: 1. Eclipse-->Preferences..(MyEclipse --> Window -->Preferences:)
2. 在“type filter text“的框框里输入”Content Types
3. 输入完后,Eclipse 会自动进行查找,然后会在右边显示出 Content Types 的属性
4. 点击右边的Text,选择 Java Properties File,看一下 下面的两个选项
<1>:File associatios: ----- 看看里面有没有 你需要的文件类型,
默认的是*.porperties(locked)
我需要的*.js ,所以这时点击 Add 按钮,自己添写file type,
我写的是 *.js 哦,点击ok
<2>:Default encoding: ----- 这里默认的值不是utf-8,
也是需要自己更改,删除掉原来的,写上
你需要的,然后点击Update ,就好了。
这里我只尝试 方法二,所以也写得比较详细(呵呵,应该说改的比较详细,因为是改别的前辈的)。
有朋友一定喜欢方法一的,可以自己尝试下。
分享到:
相关推荐
有时struts资源文件添加中文保存时会eclipse出现Some characters cannot be mapped using 'ISO-8859-1' character encoding错误不能保存 解决办法
fields at the end of some of the subtables. The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at...
1 What's Wrong With Assembly Language 2 What's Right With Assembly Language? 3 Organization of This Text and Pedagogical Concerns 4 Obtaining Program Source Listings and Other Materials ...
-rotate <deg> rotate graphical output some deg left (only PXA LCD) -vga [std|cirrus|vmware|qxl|xenfb|none] select video card type -full-screen start in full screen -g WxH[xDEPTH] Set the initial ...
1,01.zip Dialogs in DLL 在DLL中实现对话框(5KB)<END><br>2,02.zip Export dialogs in MFC Extension DLLs 在MFC扩充DLL中输出对话框(12KB)<END><br>3,03.zip Remapping resource script ID's ...