<?php
$conn = pg_connect("host=localhost port=5432 dbname=postgres user=postgres password=postgres ");
echo pg_client_encoding();
pg_set_client_encoding($conn, "utf8");
echo pg_client_encoding();
?>
PHP连接PostgreSQL设置客户端字符集pg_set_client_encoding
最新推荐文章于 2023-04-18 14:07:09 发布