if (this._outputState!=0 )
if (_explicitEncoding || _outputState!=0 )
    public void setLocale(Locale locale)    {        if (locale == null || isCommitted() ||_connection.isIncluding())            return;        _locale = locale;        _connection.getResponseFields().put(HttpHeaders.CONTENT_LANGUAGE_BUFFER,locale.toString().replace('_','-'));        if (this._outputState!=0 )            return;        /* get current MIME type from Content-Type header */        String type=getContentType();        if (type==null)        {            // servlet did not set Content-Type yet            // so lets assume default one            type="application/octet-stream";        }        if (_connection.getRequest().getContext()==null)            return;        String charset = _connection.getRequest().getContext().getContextHandler().getLocaleEncoding(locale);        if (charset != null && charset.length()>0)        {            _characterEncoding=charset;            int semi=type.indexOf(';');            if (semi<0)            {                _mimeType=type;                _contentType= type += "; charset="+charset;            }            else if (!_explicitEncoding)            {                _mimeType=type.substring(0,semi);                _contentType= _mimeType += "; charset="+charset;            }            _cachedMimeType=MimeTypes.CACHE.get(_mimeType);                        _connection.getResponseFields().put(HttpHeaders.CONTENT_TYPE_BUFFER,_contentType);        }    }