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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -