You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Joachim Müller <jo...@wemove.com> on 2003/05/22 14:49:19 UTC

possible character encoding bug

hi, I just want to check back before I submit this
to bugzilla:


there is a possible character encoding bug in

org.apache.jetspeed.util.parser.DefaultJetspeedParameterParser

line 151

return new String(str.getBytes("8859_1"), getCharacterEncoding());


this leads to errors using german umlaute when rundata parameter 
are encoded with UTF-8. (eg. in the user name: try user name 
&uuml;bel, create an account and try to edit the account)

if the rundata encoding is UTF-8 this leads to errors creating 
the string with umlauten.
does somebody put the fixed encoding here on purpose? If not I 
would propose this modification:

return new String(str.getBytes(getCharacterEncoding()), getCharacterEncoding());



joachim müller


____________________________________________

joachim müller
joachim@wemove.com . tel +49-69-759003-11

wemove digital solutions
contact@wemove.com  . tel +49-69-759003-0 .  fax +49-69-759003-22
eschersheimer landstrasse 5 
60322 frankfurt . germany
http://www.wemove.com/