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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -