Results 1 to 4 of 4

Thread: Shift JIS ignored on index page only?

  1. #1

    Join Date
    Feb 2005
    Location
    Tokyo
    Posts
    45
    Rep Power
    13

    Shift JIS ignored on index page only?

    My web site is hosted by Pow Web.

    http://www.ordinariatejapan.org/

    This has been encoded for shift JIS since its beginning several years ago. The Japanese looks fine on my desktop browsers (Firefox, Safari and Chrome)

    But Japanese viewers are complaining that the Japanese characters are garbled on their smart phone browsers. I don't have a smart phone, but I see the problem on my Android tablet -- BUT ONLY ON THE INDEX PAGE; the other pages display Japanese just fine on my tablet.

    If I duplicate the index page and upload it as index2.html then the characters display correctly. What is going on?

  2. #2
    Custom User Title tpoynton's Avatar
    Join Date
    Sep 2004
    Location
    Mass
    Posts
    2,177
    Rep Power
    18
    when I ran the index through the validator (https://validator.w3.org/), there were 214 errors, but index2 had 213 errors...finding this missing error is the key.

    You might also want to add a doctype, which would likely address many of the errors...I do not know enough to recommend a specific doctype, but someone else can probably make a suggestion!

  3. #3
    Thinkin' out loud again Builder's Avatar
    Join Date
    Nov 2002
    Location
    Illinois
    Posts
    2,088
    Rep Power
    20
    Quote Originally Posted by tpoynton View Post
    finding this missing error is the key.
    Heh, I found it. The difference between the index page and index2.html (and all other pages) is this tag:
    HTML Code:
    <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
    On the index page it is in addition to, and after, this tag:
    HTML Code:
    <meta http-equiv="Content-type" content="text/html; charset=Shift_JIS" />
    Delete the iso-8859-1 META tag and it may fix things.
    A good friend will come and bail you out of jail...
    but a true friend will be sitting next to you saying,
    "Damn... that was fun!"

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •