Hi,
My jsp, html and property files (ect) need to be done in utf-8.
1. Created index_utf8_bom_es.html using EmEditor and saving as utf-8 without the BOM (Byte-Order Mark)..
2. Directly load webpage into browser and things look good.
3. Fire up Tomcat and load webpage into browser and things look good.
3. Using myEclipse double click on file, and make a change.
After this directly loading the page in ie7 or results in square boxes.
Choosing to use keep BOM results in bad results in the characters changing in the editor as soon as the file is loaded.
Is UTF-8 officially supported by MyEclipse?
Below is my sample file utf-8 html file. Notice as per w3c recommendations I am using real characters over entities.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html lang=”es” xml:lang=”es” xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>Sample HTML Language File</title>
<meta content=”text/html; charset=UTF-8″ http-equiv=”content-type” />
</head>
<body>
<p>This file was created with EmEditor with the following W3C recommendations. I removed the BOM (Byte-Order Mark).</p>
<p>El zorro marrón saltó sobre la valla.</p>
<p>¿Cómo colaborar?</p>
</body>
</html>