Skip to content

Instantly share code, notes, and snippets.

@phamquocbuu
Created October 19, 2013 02:03
Show Gist options
  • Save phamquocbuu/7050864 to your computer and use it in GitHub Desktop.
Save phamquocbuu/7050864 to your computer and use it in GitHub Desktop.
PHP Set charset UTF-8 for MySQL
mysqli_query($con, "SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment