You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/08/09 08:56:33 UTC

DO NOT REPLY [Bug 11581] New: - The file type of the ApplicationResources.properties

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11581>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11581

The file type of the ApplicationResources.properties

           Summary: The file type of the ApplicationResources.properties
           Product: Struts
           Version: 1.1 Beta 1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: judginghuang@yahoo.com.tw


I setup some Chinese-string values in my ApplicationResources.properties 
using struts 1.1b with Tomcat 4.1.8b on a Windows 2000 professional(Build2195 
service pack 2). If I put down Chinese words on my JSP page with struts tags, 
the Chinese words in the page were showed all correctly on the IE browser. When 
I used the tag, <bean:message key="parameter.desc"/> to get the Chinse words 
from ApplicationResources.properties, the Chinese words from this file were all 
wrong. I tried to change the file type of ApplicationResources.properties from 
a "ANSI" type to a "Unicode" type(I also tried the other types,including UTF-8 
and Unicode big endian) by the Wordpad of windows 2000 professional, but the 
exception, "Missing message for key parameter.desc", happened.
     I supposed that your xxx.bean.MessageTag didn't understood unicode 
ApplicationResources.properties so a pair of bytes for a charactor were 
recognized as two bytes for two characters. Would you please correct the 
Chinese words on the JSP page with the <bean:message> tag from 
ApplicationResources.properties  if the file type of 
ApplicationResources.properties must be an ANSI?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>