...

View Full Version : Display foreign characters in <title>



bwballar
05-21-2008, 10:29 PM
I am having trouble displaying chinese characters in the page title. The characters display correctly throughout the body of the entire page, however they display as garbage characters in the page title. My code looks something like this:
.
.
.
<%@ page contentType="text/html; charset=UTF-8" %>
<title>中国</title>
.
.
.
I have also tried placing:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="zh-cn">
before the title tag. Does anyone have advice as to how this problem can be solved?

Apostropartheid
05-21-2008, 10:44 PM
Have you tried using HTML entities?

Otherwise, you're probably just out of luck; perhaps Trebuchet MS doesn't have those characters in its plane.

bwballar
05-22-2008, 10:20 PM
I have not tried html entities. However I did find out that this isnt something that is controllable with HTML. It is dependent on the settings of the individual user's operating system. To correct this error, I had to add the fonts that enable the OS to recognize the characters. These fonts can be enabled at: Start->Settings->Control Panel->Regional and Language Options->Language Tab->Supplemental Languages and Support.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum