diff --git a/pgproto/src/lib.rs b/pgproto/src/lib.rs index ab75239e7728bdb4904e8799fee89c2fb09404ab..809475d8872cdfe9493a2b2ec138a1a0be26c03d 100644 --- a/pgproto/src/lib.rs +++ b/pgproto/src/lib.rs @@ -51,6 +51,10 @@ fn handle_client(client: PgStream<CoIOStream>) -> UnitJoinHandle<'static> { fn do_handle_client(stream: PgStream<CoIOStream>) -> PgResult<()> { let mut client = PgClient::accept(stream)?; client.send_parameter("server_version", "15.0")?; + client.send_parameter("server_encoding", "UTF8")?; + client.send_parameter("client_encoding", "UTF8")?; + client.send_parameter("date_style", "ISO YMD")?; + client.send_parameter("integer_datetimes", "on")?; client.process_messages_loop()?; Ok(()) }