request.getLocale()获取客户端浏览器的语言准确吗?怎么我用IE6.0测试可以获取到正确的客户端语言中文,但是IE7、IE8获取到的都是英文啊?
解决方案 »
- 求web版 高校运动会管理系统,感激不尽!
- 在JSP中,怎么样才能是回复内容不为可执行的jsp或html文件,菜鸟急需帮助,希望各位前辈、大侠、好心人士能帮帮忙,谢谢啊···
- private不是私有的吗? 子类继承了他为什么还可以传值给private
- mybatis 到底现在还实用不?
- spring 问题:大虾们,帮忙给看一下...
- 问jms topic 的问题 一个容器里就有一个topic吗?
- <bean:write>的问题
- Hibernate和Jdo是什么东西?
- Tomcat 5.0启动错误
- 很多时候要进行复杂的查询,写复杂的SQL SELECT语句,这个时候用EntityBean显然不太合适,请问有什么好的解决方案吗?
- [API的设计]有用过facebook API(或类似的)做过开发的吗?
- 程序多线程问题 。。高手在线解决。。
public java.util.Locale getLocale()
Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server.
http://blogs.msdn.com/b/ie/archive/2006/10/17/accept-language-header-for-internet-explorer-7.aspx
In addition to the more prominent work we’ve done to enable international scenarios (like adding support for International Domain Names), Internet Explorer 7 updates the available values for the Accept-Language header.