You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Petr Suchomel <ps...@itsignet.cz> on 2000/09/09 09:42:01 UTC

Other coding than ISO 8859-1

One more help :-)

I made the JSP page 

<@% page ..... contentType="text/html; charset=Cp1250" .. (ISO8859-2) %>

<jsp:useBean id="some" scope="page" class="some.bean" />
<jsp:setProperty name="some" property="*">

<form action="this.jsp" method="post">
<input type="text" name="text" value="<jsp:getProperty name="some" property="text">">
</form>

Problem is, that I have to encode every incoming parametr like this

String s = new String( pszText.getBytes( "ISO-8859-1" ), "Cp1250" );
or
String s = new String( pszText.getBytes( "ISO-8859-1" ), "ISO8859-2" );

How to make Tomcat give me parameters in right coding?

Thanks Petr