Skip to content

Commit

Permalink
[ 2263359 ] Use UTF-8 for transport reader
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 19, 2008
1 parent 02ffe7f commit 99ee0b1
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -24,6 +24,7 @@
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;

import org.apache.commons.io.IOUtils;
import org.jumpmind.symmetric.transport.IOutgoingTransport;
Expand All @@ -34,8 +35,8 @@ public class InternalOutgoingTransport implements IOutgoingTransport {

boolean open = true;

public InternalOutgoingTransport(OutputStream pushOs) {
writer = new BufferedWriter(new OutputStreamWriter(pushOs));
public InternalOutgoingTransport(OutputStream pushOs) throws UnsupportedEncodingException {
writer = new BufferedWriter(new OutputStreamWriter(pushOs, "UTF-8"));
}

public InternalOutgoingTransport(BufferedWriter writer) {
Expand Down

0 comments on commit 99ee0b1

Please sign in to comment.