pdo - how to set charset for php PDOException itself -


i know how set charset database connection. but...how configure charset pdo . ex. when php running on windows(chinese) , if new pdo(...) failed, return message encoded gbk. if want error message encoded utf-8 ,how ? thanks.

i got exception messages encoded in utf8 changing postgresql.conf directive follows (example french language) :

lc_messages = 'french_france.utf-8'  

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

python - GitPython: check if git is available -