<?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
最新推荐文章于 2024-08-05 14:00:13 发布