
CodePudding user response:
1, connect the client script, such as: (PHP)$conn=pg_connect (" host={$pgsql_server_name} user={$pgsql_username} password={$pgsql_password} dbname={$pgsql_database} ");
Pg_exec ($conn, "set client_encoding to 'GBK'");//utf8
2, the HTML
<meta content="text/HTML. GBK charset="HTTP - equiv=" content-type "/& gt;
In several places to modify try