UTF-8 编码不能在 Internet Explorer 上正常工作,但在 Mozilla Firefox 上工作得很好 [英] UTF-8 encoding does not work properly with Internet Explorer but works perfectly with Mozilla Firefox

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

问题描述

我需要使用应用程序资源属性文件使用 bean 消息以英语以外的语言显示警报框.用 JSP 编写的代码在 Firefox 中运行良好,但在 IE 中,字符被弄乱了,我在警告框中得到了所有框标志.同样的问题也出现在 ToolTips 中.有什么解决办法吗?

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天全站免登陆