I continue looking around my problem... The problem came when I use the
response.getWriter().write("é").In java all is unicode, so the problem came when the writer try to write the text. Instead of writting the two bytes of the utf8 caracter "é" the ouput of this method is only one byte.
This is probably a configuration problem. If some one know were to configure the output charset that must use the writer, please thanks to advise me.
Have a good day
Your web pages need a good doc type:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
and a good encoding in the Head:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
IE is not going to understand entities the way you hope unless your are using standards - otherwise it's all hit and miss.
Here is an enourmously useful presentation on the whole topic:
First thanks for your answer. But this isn't helpful for me...
I already use the doc type, but it's not located in the portlet but in the layout. My layout start like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> ...
I thinks my problem is comming from the java output, that is not writting in utf-8. Maybe this message can have a better place in an other JBoss forum, but I don't know witch one ?? If someone know where...
I continue looking around to know where is my problem. Last thing that I did is to analise my HTTP header. And it's like that:
HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; JBoss-4.0.3RC1 (build:CVSTag=JBoss_4_0_3_RC1 date=200506260723)/Tomcat-5.5
Set-Cookie: JSESSIONID=E91F699FB51CFD9E9AFF56DAA8172F80; Path=/
Date: Wed, 28 Sep 2005 06:37:31 GMT
I dont' know why the charset is still set to ISO, I'have been changing all charset parameter to UTF-8... So where to change the http headers charset parameter ???