Random characters in IE

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

  • Your theme seems to be malformed. For instance the standard themes all have
    `
    <!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.
  • robs Member
    Thank you for your reply. Once looking at the standard themes, I have added the following to the beginning of all my pages:

    [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?
  • acrylian Administrator, Developer
    Since you use a custom theme make sure the character encoding of the files itsefl match the encoding set in the charset options.

    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.
  • hit1205 Member
    @robs:

    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.
  • I had a similar problem and could not figure out a proper fix but I found that if unticked all the languages except the one I wanted the problem went away! .. and will probably come back to haunt me some day :)
  • Probably will not come back to haunt you except when a new language gets added:) Zenphoto will remember the languages you have disabled.
  • That's useful to know, thanks.
Sign In or Register to comment.