天天看点

eclipse some character can not mapped using "iso-8859-1"

1. Eclipse-->Preferences..(MyEclipse --> Window -->Preferences:)

2. 找到General ---- Content Types

4. 点击右边的Text,选择 Java Properties File,看一下 下面的两个 选项 

<1>:File associatios:    ----- 看看里面有没有 你需要的文件类型,

                                  默认的是*.porperties(locked)

                                  我需要的*.js ,所以这时点击 Add 按钮,自己添写file type,

                                  我写的是 *.js 哦,点击ok

<2>:Default encoding:  ----- 这里默认的值不是utf-8 ,

                                  也是需要自己更改,删除掉原来的,写上

                                  你需要的,然后点击Update ,就好了。