Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
use UTF-8 instead of US-ASCII for initial encoding
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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]; |
|
|