Maybe I'm being obvious, but... Java properties files are ISO encoded, not UTF 
encoded. If you want Chinese characters, you have to u-encode them such as: 
\u30a6

Also, you have to specify JSP character encoding at the top of the page with: 
<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8" %>

With these two steps, it's working ok for me on a stripes 1.5 - tomcat 5.5 
setup.

Hope it helps.


-----Mensaje original-----
De: ziscloud [mailto:[email protected]] 
Enviado el: viernes, 20 de febrero de 2009 10:41
Para: [email protected]
Asunto: [Stripes-users] Unrecognizable Code of Localized error messages


Hi,
      I am using stripes1.5 to develop one system, in the system information
are showed in chinese. The problem is that, when the validation fo user's
input fail, the error messages which should be showed in chinese became
Unrecognizable Code.

      I have configed LocalePicker.Locales in the web.xml as:
      <init-param>
            <param-name>LocalePicker.Locales</param-name>
            <param-value>zh_CN:UTF-8</param-value>
      </init-param>
      
      And, I have coded the chinese error messages into the
StripesResources.properties, such as:

      stripes.errors.header=<div style="color:red;">请您修复以下的错误:</div><ol>

      converter.number.invalidNumber={0} 的值 ({1}) 不是有效的数字

    please help me to solve this big problem, Thanks a lot!

      ziscloud
-- 
View this message in context: 
http://www.nabble.com/Unrecognizable-Code-of-Localized-error-messages-tp22117616p22117616.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to