PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > HTML/CSS/Javascript
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old 8-6-16, 06:22 AM   #1
stutler
 
Join Date: Feb 2005
Location: Tokyo
Posts: 45
Reputation: 18
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?
stutler is offline   Reply With Quote
Old 8-8-16, 12:56 PM   #2
tpoynton
Custom User Title
 
tpoynton's Avatar
 
Join Date: Sep 2004
Location: Mass
Posts: 2,177
Reputation: 293
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!
tpoynton is offline   Reply With Quote
Old 8-8-16, 06:47 PM   #3
Builder
Thinkin' out loud again
 
Builder's Avatar
 
Join Date: Nov 2002
Location: Illinois
Posts: 2,087
Reputation: 291
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!"
Builder is offline   Reply With Quote
Old 8-9-16, 10:45 AM   #4
tpoynton
Custom User Title
 
tpoynton's Avatar
 
Join Date: Sep 2004
Location: Mass
Posts: 2,177
Reputation: 293
good find Builder!
tpoynton is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:17 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright 2000-2007 Jelsoft Enterprises Limited.