开发者

Any Python modules out there that do anything with HTTP_ACCEPT_LANGAUGE?

I have read that decoding the potentially long string which can be returned from a website for HTTP_ACCEPT_LANGUAG开发者_如何学JAVAE is not necessarily straightforward. Are there any packages out there in Python that try to do anything with this. I, in particular, am interested in getting at least the list of languages that are acceptable, if not getting them in their proper requested ordering. Ideally, if the full definition (which can be seen at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4) were implemented that would be the best case in case my requirements change.


some time ago I took this snippet from tweetengine It's worked well for me. Hope it helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜