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';

URL: http://www.barattalo.it/2009/11/09/stop-utf8-problems-with-italian-characters/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.