Re: How does server decide what text encoding for response?
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com $ defaults read -g AppleLanguages ( "en-AU", "en-GB", en, ja, de ) S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... At 15:37 -0800 22/1/08, Jerry Krinock wrote: So, we have two Macs, his and mine, both in western USA, both querying the same Google account. Google sends my Mac UTF8, but sends his Mac ISO-8859-1. Repeatable. How can this be? Does the URL Loading System add anything to a request under the hood which might cause Google to think that he wants ISO-8859-1 instead of UTF8? Obviously I have no idea how Google determines what encoding to use in the response. The only way to get a definitive answer to that question is to ask Google. However, I suspect that there's something in the HTML request headers that's causing the difference. Here's the headers that my Mac sends to load the main page of <http://stanford.edu>. GET / HTTP/1.1 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-au) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-au Accept-Encoding: gzip, deflate Cookie: [...] Connection: keep-alive Host: stanford.edu The most likely candidate is the "Accept-Language" header. In my case that's "en-au" because I have Australian English selected as my preferred language in the International panel. Get your user to do a packet trace of the connection and compare what's being sent on the wire on his machine versus your machine. At 15:37 -0800 22/1/08, Jerry Krinock wrote: That would be odd, since this user is Korean-American. Although his top language in System Preferences > International is English, he has more boxes checked in the "Input" tab than I do. Indeed, that would be odd. AFAICT the "Accept-Language" header is entirely determined by the first item listed in in the International preferences pane. Once you've determined that the problem /is/ actually caused by this header, have your user do the following and send you the results: This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn