annathepiper: (Final Test)
[personal profile] annathepiper
I'm seeing a discrepancy in what I see in some of our Japanese pages when I do a View Source on it on the QA version of our site vs. the prod version. Anybody want to help me suss this out?

So I go in IE 7 to the QA version of the page. I do a "View Source" on it and the page's source code pops up in Notepad as expected. I see a bunch of garbled characters that are supposed to be the Japanese characters.

I do this exact same thing on the production version of the page, and I see the actual Japanese characters. To wit, buh?

This therefore can't be an issue with Notepad failing to display the Japanese characters correctly. It can do it with the production page just fine. But what I don't get is why Notepad on the exact same computer shows me garbled characters for one page and Japanese characters for another one.

Note also that the QA version of the page displays the Japanese characters in the source code just fine if I look at it in Firefox.

Anybody got any theories?

Date: 2009-05-12 05:18 pm (UTC)
From: [identity profile] wingedelf.livejournal.com
Is the page encoding set properly in the test environment?

Date: 2009-05-12 05:36 pm (UTC)
mdlbear: blue fractal bear with text "since 2002" (Default)
From: [personal profile] mdlbear
This was my first thought, too. Take a look at the HTTP response headers and see what they say for the encoding.

If the site's being served from Apache, check the .htaccess files as well as the site and host-wide configuration files. If there's browser-detection code on the server side, check that.

Look at the HTTP headers, for sure.

Date: 2009-05-12 06:45 pm (UTC)
From: [identity profile] zeekar.livejournal.com
Firefox has extensions that make it easy, or you can use command-line tools like curl -I, or lwp-request -m head... Look at the Content-Type: header, and see if it has a charset= parameter, and make sure they agree between the two versions. If they do, then check for a <meta http-equiv="content-type" content="..."> in the HTML, and compare those. If they're all the same, then I got bupkiss.

Re: Look at the HTTP headers, for sure.

Date: 2009-05-12 07:19 pm (UTC)
From: [identity profile] zeekar.livejournal.com
Are the QA and prod versions on ttwo different web servers? The URL's otherwise the same? IE7 sometimes pays unwarranted attention to anything that looks like a file extension in a URL...



Re: Look at the HTTP headers, for sure.

Date: 2009-05-12 10:35 pm (UTC)
mdlbear: blue fractal bear with text "since 2002" (Default)
From: [personal profile] mdlbear
Good point -- I've been burned by this, too. If the headers are the same, file extensions are a good place to look: IE often ignores the headers in favor of the extension. If there's no extension, IE usually does something completely braindead.

Date: 2009-05-13 11:39 am (UTC)
From: [identity profile] fleetfootmike.livejournal.com
Recommended reading, if you haven't: http://www.joelonsoftware.com/articles/Unicode.html

Profile

annathepiper: (Default)
Anna the Piper

November 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 9th, 2026 04:28 am
Powered by Dreamwidth Studios