Re: Re: Not all characters are allowed in Resource Bundle

2002-05-26 Thread Lily Chan

As "{" and "}" are used for argument passing in Struts Resource Bundle, all 
those characters containing "{" unicode value="\u007b" and "}" unicode 
value="\u007d" are not allowed in Resource Bundle and error "Unmatched 
braces in the pattern" throws. Examples include "\u3f7d", which is "頒" in 
Chinese.

As suggested by Nicholas in the previous mail, we can put the unicode value 
directly into the resource files. This may work for the case that unicode 
encoding is used in the JSP. However, I'm using Big5 encoding in the JSP. So 
the character becomes "??" in the JSP.

I also tried putting "\u007d" behind those problem characters, another 
error, "Can't parse arguement number" throws.

Please help.

Lily Chan

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Not all characters are allowed in Resource Bundle

2002-05-24 Thread Nicolas De Loof

> I have Traditional Chinese and English resource files in my web
application.
> Everything worked fine at first. I could switch between these two
languages
> without difficulties.
>
> But it was found that when there were certain Chinese characters in the
> Chinese resource file, error "Unmatched braces in the pattern" were shown.
> Once I removed those characters from the resource file, the jsp can be
shown
> again without problems. I also tried putting the characters directly into
> the jsp, these characters can be displayed properly. Some of those problem
> characters are "µ{","²{" and "¹{".

This characters ISO-16 encoding looks to include ASCCI code for "{", that is
in a message the begining of a parametrized text (like "welcome Mr {0}")

Perhaps you could try to include this characters as ISO code
("\u0041" = 'A' for example) ?

Se



--
To unsubscribe, e-mail:   
For additional commands, e-mail: