Forum Moderators: open

Message Too Old, No Replies

Display Chinese Characters in Select Menu

Issue with IE fonts

         

ZanyZebra

11:31 pm on Sep 25, 2009 (gmt 0)

10+ Year Member



This simple page will display correctly in FireFox but not display the Chinese characters in the HTML Select (but does in the body) with IE 8, however both work in IE 8 on another machine (I guess with fonts installed).
Firefox has no probem eitherway.

(Where the junk characters are below that would be Chinese text if these forums supported it)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Chinese Test</title>

<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
</head>

<body>
<B>語法。</B>
<select name="Language" id="Language">
<option selected="selected" value="17">語法。</option>
<option value="24">English</option>
</select>

</body>

</html>

bill

10:53 am on Sep 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld ZanyZebra.

This would make the file validate:

<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

However, I can't reproduce this on my machines. I tried with Chinese and Japanese, and the language appears correctly for me either way and in FF, IE8, Opera, Chrome and Safari.

ZanyZebra

11:15 am on Sep 27, 2009 (gmt 0)

10+ Year Member



Thanks Bill.

I put in that valid meta tag but does not fix the problem on the one computer with problem.

I suspect it would fix with some sort of language pack install but it is annoying that IE displays some Chinese characters and FireFox does all elements, so it seems the OS has the Chinese characters but IE doesn't access them with the select element.

I'd prefer the select element not to have junk characters in it, but I am guess that Asian computers will display correctly.

bill

4:18 am on Sep 28, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



IE is pretty good about displaying things that aren't valid. I think it could interpret that meta tag as originally posted.

You are probably closer to the mark saying that the proper fonts/languages aren't installed on the problem machine. However, didn't you say it was displaying correctly outside the <select> box?

ZanyZebra

9:57 am on Sep 28, 2009 (gmt 0)

10+ Year Member



Yes it is displaying properly outside the select box in IE , so it really doesn't want to make sense that the OS needs fonts, but it is external the browser as the problem does not appear on another IE 8 on a different machine.
I just realize one other difference the OS the browser is on is different Vista works and XP does not. I will try and test on more machines to see if this is consitently the problem.

bill

11:40 am on Sep 28, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you could narrow it down to a specific OS and browser...and it's repeatable, I have a bunch of virtual PCs I could test it out on. Let me know what you find. I can try to repeat it.

jimmybones

6:58 pm on Oct 9, 2009 (gmt 0)

10+ Year Member



I'm running into the same issue described here. I can reproduce it 100% of the time in ie7 on 32-bit XP Pro. Chinese characters display correctly in a select list in FF3.5, but as 'blocks' in ie7. This is with the character encoding declared in the head of the document.