Hardcoded response encoding to ISO-8859-1 to see

if this helps on Mac OS X
This commit is contained in:
hns 2001-05-15 13:01:49 +00:00
parent bb0d9c02fd
commit 80344147dc

View file

@ -174,7 +174,11 @@ public class ResponseTrans implements Externalizable {
public synchronized void close () { public synchronized void close () {
if (response == null) { if (response == null) {
if (buffer != null) { if (buffer != null) {
response = buffer.toString ().getBytes (); try {
response = buffer.toString ().getBytes ("ISO-8859-1");
} catch (UnsupportedEncodingException badenc) {
response = buffer.toString ().getBytes ();
}
buffer = null; // make sure this is done only once, even with more requsts attached buffer = null; // make sure this is done only once, even with more requsts attached
} else { } else {
response = new byte[0]; response = new byte[0];