UTF-8编码在Internet Explorer中无法正常工作,但与Mozilla Firefox完美配合 [英] UTF-8 encoding does not work properly with Internet Explorer but works perfectly with Mozilla Firefox

查看:210
本文介绍了UTF-8编码在Internet Explorer中无法正常工作,但与Mozilla Firefox完美配合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以英文以外的语言显示一个警告框,我正在使用应用程序资源属性文件来使用bean消息。在JSP中编写的代码在Firefox中完美工作,但在IE中,字符被搞乱了,我在警告框中获得了所有的框标志。同样的问题也出现在工具提示中。任何解决方案?

I need to display an alert box in other than English language for which I am making use of bean message using Application Resource properties file. The code written in JSP works perfect in Firefox but in IE the characters are messed up and I get all box signs inside alert box.The same problem occurs for ToolTips as well. Any solutions?

推荐答案

我找到了我的查询解决方案。实际上,问题出现在工具提示和警报框中,只能在Internet Explorer中以框标记字符显示,而在Windows XP中也是如此,但在Windows 7和其他浏览器中正常工作。
我所做的是:

I did found a solution for my query. Actually the issues were with the tool tips and alert boxes were getting displayed in box sign characters only in Internet Explorer and that too in Windows Xp but working properly in windows 7 and other browsers. What i did was:

1. Right Click On Desktop
2. Properties
3. Appearence Tab
4. Click On Advanced Button
5. In the Item Combo box Select MessageBox(the font combo box should get enabled by then)
6. Select Arial MS Unicode Font instead of Tahoma(Windows XP Default) Font.

然后检查。期望的输出将被看到。这是解决方案,但它似乎工作正常。感谢WouterH和Hardik的指导,直到这里。

And then Check. The desired output will be seen. This is a work around solution but it seems to work fine. Thanks WouterH and Hardik for your guidance till here.

这篇关于UTF-8编码在Internet Explorer中无法正常工作,但与Mozilla Firefox完美配合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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