【发布时间】:2017-04-28 02:28:11
【问题描述】:
我正在使用 Php5.6.2 和 postgres 作为数据库连接。 postgres 设置为 UTF-8
我尝试选择 db,但它返回错误“SQLSTATE[22021]: Character not in repertoire:7 ERROR: invalid byte sequence for encoding "EUC_JP": 0xe58e"
$this->db = new PDO("pgsql:host=localhost;dbname=test","cadusr","cadpass");
有些查询运行成功,有些则没有。 我预计失败的查询可能包括日语。
我可以得到一些教学吗?谢谢。
【问题讨论】:
标签: php postgresql pdo