Put a mysql connection into UTF-8 mode


/ Published in: MySQL
Save to your folder(s)

If you are trying to extract utf8 encoded data from mysql, and it isn't working properly, try executing this command on your mysql connection prior to your select statement.


Copy this code and paste it in your HTML
  1. SET NAMES 'utf8'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.