Searched the archives but could not find relevant answers.

This is JBoss 2.4.4 with Tomcat 3.2.3. Character encoding works fine both 
for input*1 and output. I did verify this checking the database content and 
displaying in JSP output without Struts help.

Now the problem is that Struts ignores(?) encoding set in @page contentType 
to UTF8:

<html:text property="name" styleId="name" tabindex="1" size="16" 
maxlength="16"/>

above displays wrong result whereas using my own method to display the same 
data (custom tag library to display EJB entity).

It is very strange as I am able to input (and decode characters) correctly 
with modified setters but somehow this does not work to display output.

Am I doing something wrong? Or is this a bug?

TIA
Peter

*1 I changed setters in my ActionForm:
    try {
      this.name = new String(name.getBytes("iso-8859-1"), "utf-8");
    }
    catch (java.io.UnsupportedEncodingException e) {
      this.name = name;
    }


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to