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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -