Javascript Alert未在I.E8中显示中文字符 [英] Javascript Alert not displaying Chinese characters in I.E8

查看:61
本文介绍了Javascript Alert未在I.E8中显示中文字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我遇到Javascript Alert Box的问题.我正在将警报框中的文本本地化为中文,当我在Firefox中打开该文本时,它工作正常,但是当我们在I.E8中打开该文本时,显示的是文本框(格式).警报框未在I.E8中显示汉字.我尝试使用此代码,但没有用(下面的代码).帮助我在警告框中显示中文.
我使用的代码

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

<script type="text/javascript" charset="utf-8">

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

推荐答案

您尝试过这些吗?

http://www.white-clouds.com/iclc/cliej/cl6wen.htm [ ^ ]

http://www.jp41.com/internet-explorer/chinese/ [ http://proquest.umi.com/i-std/en/lcd/browser/browsercck.htm [ ^ ]
Did you try these ?

http://www.white-clouds.com/iclc/cliej/cl6wen.htm[^]

http://www.jp41.com/internet-explorer/chinese/[^]

http://proquest.umi.com/i-std/en/lcd/browser/browsercck.htm[^]


AswinKrishnan,感谢您的答复,每个客户端浏览器都需要安装字体,这是完全不可能的.是否有解决方案可以通过代码解决?
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?


这篇关于Javascript Alert未在I.E8中显示中文字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆