myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Kommareddi" <anil.kommare...@effone.com>
Subject RE: Javascript Alert with Japanese characters (UTF-8)
Date Thu, 21 Dec 2006 13:18:20 GMT
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: kiran.gutta@wipro.com [mailto:kiran.gutta@wipro.com] 
Sent: Wednesday, December 20, 2006 11:13 PM
To: users@myfaces.apache.org; anil.kommareddi@effone.com
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:anil.kommareddi@effone.com] 
Sent: Wednesday, December 20, 2006 9:49 PM
To: users@myfaces.apache.org
Subject: RE: Javascript Alert with Japanese characters (UTF-8)

 

Use escape="false" on the outputText.

  _____  

From: kiran.gutta@wipro.com [mailto:kiran.gutta@wipro.com] 
Sent: Wednesday, December 20, 2006 6:35 AM
To: users@myfaces.apache.org
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
	

Mime
View raw message