I forgot to mention in my last email : a quick one-liner to convert a
parameter what was encoded as UTF-8, but incorrectly interpreted as
ISO-8859-1 is:<br>
String myParam = new String (getParameter("myParam").getBytes("UTF-8"),"ISO-8859-1");<br>
<br>
There is some discussion of the problem here:<br>
<a href="http://www.jguru.com/faq/view.jsp?EID=1030399">http://www.jguru.com/faq/view.jsp?EID=1030399</a><br>
<br>
Googling around will get lots more --- it's a very common problem. If
you deal a lot with internationalization, it's well worth your while
learning the background to UTF-8, ISO-8859-1 etc. Wikipedia
(<a href="http://www.wikepedia.org/">http://www.wikepedia.org/</a> ) is a good starting point. This stuff used
to drive me nuts until I took the time to sit down and read about it
all, and then all was clear :-)<br>
<br>
<br>
Joe.<br>
<br><br><div><span class="gmail_quote">On 9/5/05, <b class="gmail_sendername">Gonzalez, Arnau (GE Consumer Finance, consultant)</b> <<a href="mailto:arnau.gonzalez@ge.com">arnau.gonzalez@ge.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>Passing a text as a parameter from a jsp to another jsp, the special characters change.<br>For example, this line (text.jsp just return the text):<br><br><h1><a href="http://localhost:8080/text.jsp?text=">
http://localhost:8080/text.jsp?text=</a>¡hello!</h1><br><br>shows this: Â¡hello!<br><br>I've
found that if I use the hex value instead of the char it works, but the
problem is that this texts is introduced by the user and is not any
practical to obly the user to know the hex codes.<br><br>How can I solve it?<br><br>Arnau<br><br><br>_______________________________________________<br>This mail is send to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit
<br><a href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br>