Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am facing a problem with Javascript Alert Box.I am localizing the text to Chinese in the alert box,When I open that in Firefox,It is working fine, but when we open it in I.E8 the text is showing boxes(Format).Alert box is not displaying Chinese characters in I.E8.I tried using this code,But it was of no use(Code Below). help me in getting the Chinese language on the alert box.
Code I used
VB
<script type="text/javascript" charset="utf-8">

        {
            var message = '<%=GetGlobalResourceObject("myResource", "Label1").ToString() %>';
            alert(message);
        }
    </script>
Posted

AswinKrishnan, Thanks for the reply , Every client browser need to install the fonts and it is quite impossible to do that.Is there any solution to solve it from code?
 
Share this answer
 
Comments
AswinKrishnan 25-Oct-11 3:22am    
I understand your problem but if you change the Encoding of the IE, it should work.

Check this link

http://www.capitolacomputing.com/intl_js_charset.htm

the author is providing a solution for similar kind of scenario. hope it helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900