Permalink
Browse files

use UTF-8 instead of US-ASCII for initial encoding

  • Loading branch information...
davecramer committed Oct 13, 2015
1 parent 09d7b77 commit 8dae0ae5df6ffaa484d0d6ff69aaa33f5d1d713b
Showing with 1 addition and 1 deletion.
  1. +1 −1 org/postgresql/core/PGStream.java
@@ -60,7 +60,7 @@ public PGStream(HostSpec hostSpec, int timeout) throws IOException
Socket socket = new Socket();
socket.connect(new InetSocketAddress(hostSpec.getHost(), hostSpec.getPort()), timeout);
changeSocket(socket);
setEncoding(Encoding.getJVMEncoding("US-ASCII"));
setEncoding(Encoding.getJVMEncoding("UTF-8"));
_int2buf = new byte[2];
_int4buf = new byte[4];

0 comments on commit 8dae0ae

Please sign in to comment.