if charset is not set in server/app properties, use iso-8859-1 (western).otherwise, an uncaught NullPointerException was thrown by String.getBytes(enc).
This commit is contained in:
parent
930d50d427
commit
e3834af297
1 changed files with 3 additions and 1 deletions
|
@ -296,7 +296,9 @@ public final class ResponseTrans implements Externalizable {
|
|||
// only use default charset if not explicitly set for this response.
|
||||
if (charset == null)
|
||||
charset = cset;
|
||||
|
||||
// if charset is not set, use western encoding
|
||||
if (charset == null)
|
||||
charset = "ISO-8859-1";
|
||||
boolean error = false;
|
||||
if (response == null) {
|
||||
if (buffer != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue