Re: Prototype, Safari and Japanese problems?
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Fri, 20 Jan 2006 05:07:35 +0100
Doug Lerner wrote:
> [...] "Thomas 'PointedEars' Lahn" [...] wrote:
>>> What I am not getting is what you are saying about how setting the
>>> HTTP header for the server response will help in this case.
>>
>> Why, data should always be served as it is actually encoded. Until you
>> provide a test case (and not just screenshots), there is nothing more
>> that can be said about this.
>
> I can't provide a test case that you can actually use for testing unless
> you had the same client/server setup I have, which is unlikely...
You could at least provide for a test case, so that a KHTML user (like me)
could check if the encoding you use is the correct one and what might cause
the data to be transmitted garbled from your resource.
(I am sorry if this reads impatient, but I am quite tired and you provided
not much helpful information that could enable me to help you.)
> In summary, once again, after I send the Japanese data
How were they input? How were they submitted?
> to the server I can log it there
How is the log created server-side?
> and if I examine the log via Safari
Is it a plain text file or does it contain code of a markup language? Do
you access the resource directly or do you access another resource that
retrieves the content from the log file indirectly?
> I can see the data correctly if I set the browser to force the character
> encoding to UTF-8.
The question is how you serve this resource.
> So I am assuming that for some reason when sent via Safari the data is
> turning into UTF-8.
Maybe. Maybe not. Unfortunately, my crystal ball is on vacation now.
> Or maybe that is happening when sent via all the browsers, but the other
> browsers are just clever enough to compensate regardless of the charset
> heading in the browser.
Yes, it is possible that Safari does not follow HTTP/1.1 in that regard.
Which is why I suggested you checked the encoding of all resources and
made the meta[http-equiv="Content-Type"] `content' attribute value the
same as the Content-Type HTTP header (provided that it is correct) or
just omit the former.
> However, when the data comes back from the server
What do you mean with "comes back from the server"?
> I can't do the same trick in Safari and force the page to reload with a
> UTF-8 character encoding to see the characters correctly.
Use <URL:http://livehttpheaders.mozdev.org/> to find out if you submitted
and served the correct headers, provided that you have no browser switch
server-side.
> So... maybe something is happening to the characters on the way back to
> Safari. Again, Firefox and IE are able to compensate for whatever is
> happening.
Have you tried with Konqueror which is using KHTML and KJS, too?
Goodnight,
PointedEars
.
- References:
- Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Re: Prototype, Safari and Japanese problems?
- From: Martin Honnen
- Re: Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Re: Prototype, Safari and Japanese problems?
- From: Martin Honnen
- Re: Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Re: Prototype, Safari and Japanese problems?
- From: Martin Honnen
- Re: Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Re: Prototype, Safari and Japanese problems?
- From: Thomas 'PointedEars' Lahn
- Re: Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Re: Prototype, Safari and Japanese problems?
- From: Thomas 'PointedEars' Lahn
- Re: Prototype, Safari and Japanese problems?
- From: Doug Lerner
- Prototype, Safari and Japanese problems?
- Prev by Date: Re: Cross-browser DHTML/JS Excel-like "GRID"
- Next by Date: Re: Attach event/function to links within span tag
- Previous by thread: Re: Prototype, Safari and Japanese problems?
- Next by thread: Re: Prototype, Safari and Japanese problems?
- Index(es):
Relevant Pages
|