I\'ve got the following problem. I created a new \"Dynamic Web Project\" and imported some existing jsp files into it.
If i right click one of the imported jsp files an
It's not a bug, it's a feature
Eclipse didn't "determine" the correct encoding by scanning the file as like file or iconv commands on your shell.
Solution: Add following line to your JSP:
<%@ page pageEncoding="UTF-8" %>
This is a good Idea due to many Web-Container will force to deliver ISO-8859-1 encoded files nevertheless you have set the correct content type in your HTML Header.
FYI: Mismatching CharacterSets and file encodings will lead
In Eclipse, go to Windows -> Preferences -> Web -> JSP Files
Select UTF-8 encoding from the *Encoding *dropdown box there.
What are the encoding settings in Window > Preferences
General > Workspace
, Web > JSP Files
and in the Project Properties > Resource
? They all have to be correct.
Windows >Preferences > General > Content Types > Text > JSP > Default Encoding > UTF-8