I want to use French in alert() function but I do not know how to do that. This is my code : Response.Write("<script language=javascript type='text/javascript'>"); Response.Write("alert('expiré');"); Response.Write("</script>"); It is displayed : expir This character "é" is not displayed. I tried some cases and I got the same result. Please help me about this. Thanks a lot! Best Regards, pcphuc
^^ This won't work either. Try setting the charset to iso-8859-1 in your page <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> HTML: And try it again like you had at the beginning.
Thanks for your response! But its result is the same. I do not know what happen. Could you give me another suggestion? Best Regards, pcphuc.
Now I use char hexadecimal unicode for that and it works well. for example : Response.Write("<script language=javascript type='text/javascript'>"); Response.Write("alert('expir\xE9');"); Response.Write("</script>"); xE9 : 223 -> its code is é This is link table of Unicode for sepcial character : http://biega.com/special-char.html Best Regards, pcphuc.