From 80344147dc471241960b07578417335244b3d92e Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 15 May 2001 13:01:49 +0000 Subject: [PATCH] Hardcoded response encoding to ISO-8859-1 to see if this helps on Mac OS X --- src/helma/framework/ResponseTrans.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index c07d37a8..0551dae8 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -174,7 +174,11 @@ public class ResponseTrans implements Externalizable { public synchronized void close () { if (response == 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 } else { response = new byte[0];