开发者

How to change the text encoding for files in eclipse?

I have the same problems as this guy. However I will say that when I view the JSP page in the editor the accents are there (because the encoding is set to ISO-8859-1. Determined from content), changing this to UTF8 mangles the characters in the editor the same way as shown in the web browser. I really need to 开发者_开发百科convert the whole project to UTF8 (I have set it to such in project preferences) but alas, I've wasted hours and gotten nowhere yet. Can anyone shed a light on this for me please?


Before changing the content type

$ iconv -f ISO-8859-1 -t UTF-8 < file.jsp > file-utf8.jsp

It worked for me - I'm on a mac.

if you google arroud you will find some shell scripts to do it recursively.

PS. I didn't find a easier way to do it. =/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜