also make sure your database saves things in utf8 all type of things may
get messed up if this is not the case there are numerous articles about
it, like the ones below
http://climbtothestars.org/archives/2004/07/18/converting-mysql-database-contents-to-utf-8/
http://www.oreillynet.com/onlamp/blog/2006/01/turning_mysql_data_in_latin1_t.html
regards
Peter Petersson
Xh wrote:
Hi All!
I have a problem with UTF-8 web pages encoding and Polish language.
Pages are generated from XML files with XSLT. All Polish characters
are properly displayed.
Everything is OK.
Response is sent as:
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=DCDE41C9E12D69A15B261649CF15DF8E; Path=/DataWeaver
Content-Type: text/html;charset=UTF-8
...
also, the generated XHTML resposne's <header> element consists:
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta content="pl" http-equiv="Content-Language"/>
but...
when I fill Polish characters in web form and submit it, all Polish
characters are corrupted...
for example, inserted records in database are displayed as strange strings
furthermore, when I extract parameters in this way:
Map<String,String[]> temp = (Map<String,
String[]>)request.getParameterMap();
for (String s: temp.keySet()) {
// output to the console
// this will print every single Polish character as double '?'
System.out.println(s + ": " + temp.get(s)[0]);
}
any idea how to extract UTF-8 encoded strings from request?
thanks in advance
best regards
Lukasz
------------------------------------------------------------------------
Yahoo! Cars
<http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/>
NEW - sell your car and browse thousands of new and used cars online
search now
<http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/>
------------------------------------------------------------------------