So I've searched through the forum and couldn't find an answer for this one...
My site (in testing phase):
http://www.monyzakhour.com/When viewed in Google Chrome, everything is as it should be. However, when I open it in I.E., parts of the text are in random characters - For example, the contact form is in Chinese and the Image dates are displayed as "2010年05月26日"
I'm baffled. Any help would be greatly appreciated!
Comments
`
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
`
for their header, which yours does not. So it may also be missign the code to set the character set.
`" />`
Note: this is from the development release, LOCAL_CHARSET will be need to be substituted for the proper getOption(). You will see when you look at the themes.
If so that would certainly cause your problems. Perhaps Chrome does automatically detect character set and therefore displays correctly. I do not know.
Take a look at one of the distributed themes and see the code that they place at the start of each page. Yours should match.
[code]
<?php
// force UTF-8 Ø
if (!defined('WEBPATH')) die();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?php echo getOption('charset'); ?>" />
[/code]
I'm still having the same problem in IE (now running IE9). Any other suggestions?
You should also check the encoding of your database and server.
Also you should check your scirpts. Zenphoto already includes jquery and you do it again. This can cause these issues as well.
What is your language setting on IE? It seems you choice the "HTTP Accept Language" in zenPHOTO's language option so the theme display sentences with user's browser settings.
I found that because my Chrome also display your contact form in Chinese, and my default language setting is Chinese, too. (It changed to English after I change my browser's setting.)
BTW, the "random characters" problem may be caused by the PHP's strftime locate, I have the same problem with simplePHPblog and zenPHOTO. All data I found say it only happen on PHP in Windows system, but I have this problem on Linux host, too.