withCharset("ascii", "ascii_general_ci"); $db = Mysql\connect($config); echo "Character set changed\n"; /* optional, as connection will automatically close when destructed. */ $db->close();