Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set Encoding in ezSQL
// When creating a new connection just set the fifth parameter to the encoding you desire
// and ezDB will run a 'SET NAMES' query with your preferred encoding.
$db = new ezSQL_mysqli(
'username',
'password',
'database',
'localhost',
'UTF-8'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.