parent
91987d4233
commit
f9c829f7cc
|
@ -839,6 +839,9 @@ public class Response implements HttpServletResponse
|
||||||
if (_characterEncoding == null)
|
if (_characterEncoding == null)
|
||||||
{
|
{
|
||||||
String encoding = MimeTypes.getCharsetAssumedFromContentType(_contentType);
|
String encoding = MimeTypes.getCharsetAssumedFromContentType(_contentType);
|
||||||
|
if (encoding!=null)
|
||||||
|
return encoding;
|
||||||
|
encoding = MimeTypes.getCharsetInferredFromContentType(_contentType);
|
||||||
if (encoding!=null)
|
if (encoding!=null)
|
||||||
return encoding;
|
return encoding;
|
||||||
return StringUtil.__ISO_8859_1;
|
return StringUtil.__ISO_8859_1;
|
||||||
|
|
Loading…
Reference in New Issue