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 2003/07/25 17:43:40 UTC
DO NOT REPLY [Bug 21890] New: -
MessageResources quoting single quotes
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=21890>.
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=21890
MessageResources quoting single quotes
Summary: MessageResources quoting single quotes
Product: Struts
Version: 1.0.2 Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Utilities
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: dgreer@fedex.com
Since version 1.0.2 MessageResources quotes single quotes found within the
properties files. According to the javadocs for the MessageFormat class, literal
open and close braces are produced by quoting them with single quotes, and
single quotes are produced by using two single quotes.
The problem with MessageResources quoting single quotes is that it disables the
ability to produce literal braces (not to mention it causes properties files to
no longer be compatiable with regular resource bundle usage). This in turn
causes problems with internationalization. Because certain languages like
Chinese Traditional and Japanese use open and close braces (\u007b and \u007d)
to represent characters, this corrupts the content.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org