Jacky Chen wrote:
On Tapestry 3.0.3, and Tomcat 5.0.28

There is a single "login" page, like the login page example in the book "Tapestry In Action".

The following lines are in the HTML file.

  <span jwcid="@Insert" value="ognl:message">
    Error Message
  </span>

In some method of the page class, the "message" field is set with a string containing Chinese characters.

All files' encoding are UTF-8.

The "template encoding" of the whole tapestry application is set to UTF-8.
The "output encoding" is UTF-8.

But, the "message" is not shown correctly in the output html file. They are translated into "&#37827; ...".

Is that when you view the page source or when you view the page in a browser? The page source would probably display "&#37827;..." but the page should display the correct characters in the browser. If you see &#37827; in the browser then perhaps your method 'getMessage' returns a HTML-escaped string, you could try to set the 'raw' parameter to the Insert component. You might want to make sure that tapestry reads your templates with the correct character encoding. http://article.gmane.org/gmane.comp.java.tapestry.user/8635/


It seems that those Chinese characters are first treated as chars in some encoding other than UTF-8. (ISO8859-1 ?)

What is the solution?


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



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

Reply via email to