You need escape=false so that the ampersand is not escaped and the unicode characters are rendered properly. I am assuming you set the content-type charset to utf-8. Place the same outputText on a page and view the source to see why it is not rendering correctly. _____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 11:13 PM To: [email protected]; [EMAIL PROTECTED] Subject: RE: Javascript Alert with Japanese characters (UTF-8) Using escape="false" also behaving in the same way. I believe escape="false" escapes characters like <,> etc. Thanks, Kiran _____ From: Anil Kommareddi [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 9:49 PM To: [email protected] Subject: RE: Javascript Alert with Japanese characters (UTF-8) Use escape="false" on the outputText. _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 6:35 AM To: [email protected] Subject: Javascript Alert with Japanese characters (UTF-8) Hi, I am developing a web application using MyFaces 1.1.1. I have to display Japanese Java script alert messages. I am reading the messages from resource bundle using h:outputText. e.g. alert('</f:verbatim><h:outputText value="#{messages.res_alert1}"/><f:verbatim>) The messages are displayed as sequence of &#nnnnn;. (where nnnnn is decimal equivalent of Unicode character). How can I display Japanese strings instead of number? Thanks & Regards, Kiran The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

