Welcome to WebmasterWorld Guest from 18.206.168.65

Forum Moderators: bill

Message Too Old, No Replies

Display Chinese Characters in Select Menu

Issue with IE fonts

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

New User

5+ Year Member

joined:Sept 25, 2009
posts: 3
votes: 0


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>

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

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15136
votes: 167


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.

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

New User

5+ Year Member

joined:Sept 25, 2009
posts: 3
votes: 0


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.

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

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15136
votes: 167


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?

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

New User

5+ Year Member

joined:Sept 25, 2009
posts:3
votes: 0


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.
11:40 am on Sept 28, 2009 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:15136
votes: 167


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.
6:58 pm on Oct 9, 2009 (gmt 0)

New User

5+ Year Member

joined:Oct 9, 2009
posts:1
votes: 0


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.