request.getLocale()获取客户端浏览器的语言准确吗?怎么我用IE6.0测试可以获取到正确的客户端语言中文,但是IE7、IE8获取到的都是英文啊?

解决方案 »

  1.   

    没人回答,我自己回答好了
    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.