Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
HTTP Accept-Language header
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTP Accept-Language header



I was going to put little content-negotiation in place for a web app I'm working on and was seeing how changing the "Language" and "Region Format" settings in

Settings -> General -> International

affected the value of the HTTP Accept-Language header that Mobile Safari sends. As far as I can tell the "Region Format" setting has no effect. For example, setting the language to "English" and the region format to "United Kingdom" will still result in "en-us" being sent as the Accept-Language header.

For the other languages we support here are the results:

English					en-us
French					fr-fr
Italian					it-it
German					de-de
Spanish					es-es
Chinese (Traditional)		zh-cn
Chinese (Simplified)		zh-tw

Are there scenarios when the user can set their phone to one of the above languages but Safari will send a different Accept-Language header? For example, is there some way that a user in Switzerland might set that might result in "de-ch", "it-ch" or "fr-ch" being sent, or where a UK user might configure their phone to send "en-gb"?

What about Chinese users? (They are important to us.) Are there more variations than just zh-cn and zh-tw that the iPhone might send out?

If I missed this in the online docs my apologies in advance.

Best, Darren

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Safari-iPhone-Web-Dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.