Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UTF-8 encoding does not work properly with Internet Explorer but works perfectly with Mozilla Firefox

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?

like image 702
sTg Avatar asked Apr 03 '12 18:04

sTg


Video Answer


2 Answers

Check your page encodings

FF uses UTF-8 page Encoding. View--> Character Encodings

Earlier versions of IE set character encoding according to the language on the client when the document did not specify encoding

Which IE Version are you using ?

This may help also. IE uses the wrong character set when it renders an HTML page

Is charset is utf in headers ?

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
like image 66
Hardik Mishra Avatar answered Nov 02 '22 16:11

Hardik Mishra


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.

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.

like image 26
sTg Avatar answered Nov 02 '22 16:11

sTg