UTF-8 characters not displaying in IE6
Dear Sirs,
I have an issue in displaying UTF-8 characters in Internet explorer 6.
I set up my all jsp pages encoding as UTF-8.
Any language characters(like chinese,tamil etc) perfectly dispaying in firebox browser.
But in internet explorer, the characters are not displaying.it displays like ?! ..
Could any body help me out?
Thanks
mulaimaran
# 2
Thanks Viravan,
But, I have added this line in my jsp before html tag.
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
After html tag,i added this meta tag.
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
So, the UTF-8 encoding is capable to show different language characters in firebox browser.
But In Internet Explorer 6 other language characters not displaying..
> jsp sends out the UTF-8 BOM (hex: EF BB BF) before
> the HTML tag.
I cant understand this line.I m new one to java.
So ,please help me out.
Thanks
mullaimaran
# 3
IE seems to ignore the utf-8 meta tag, it behaves correctly when it receive an actual utf-8 page. An actual utf-8 page has a three-bytes marker at the beginning of the file. See if you can send IE a page that begins with 0xEE 0xBB 0xBF.
The following is a small sample page in Chinese:
<HTML>
萧应勇
</HTML>
Copy and paste it into Microsoft WordPad, save it specifically as a UTF-8 text file name test.htm and see if it's displayed correctly in IE.If you edit the test.htm file, you'll see the UTF-8 BOM signature at the beginning of the file.
V.V.
# 5
perhaps not, but try these link and see for yourself
this link works:
http://vvanic.home.insightbb.com/test1-utf8.htm
this link requires you to manually change the encoding:
http://vvanic.home.insightbb.com/test2-utf8.htm
in this case, my free webspace's server simply refuses to serve utf-8 pages and BOM hack works just fine.
;)
V.V.
# 6
Your code seems alright, but well, maybe to a little difference from what I'm doing.I use utf-8 instead of UTF-8 in my jsp and I've never had problem.Try this and tell me if that helps.