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
Post a Comment