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:
hns 2002-10-01 20:16:47 +00:00
parent 930d50d427
commit e3834af297

View file

@ -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) {