Stop utf8 problems with mysql

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

- fields on db with utf8_general_ci collation
- make this query after any connection
- put meta charset utf8
- read and write strings without problems

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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.