In a mySql table I'm using Latin1 character set to store text in a varchar field. As our website now is supported in more countries we need support for UTF8 instead. What will happen if I change these fields to UTF8 instead? Is it secure to do this or will it mess up the data inside these fields? Is it something I need to think about when changing the field to UTF8?
Thanks!
MySQL handles this nicely:
EDIT: And there are no latin-1 characters that cannot be stored as utf-8, so you shouldn't get any dataloss
There shouldn't be any problems on the database front. MySQL will handle the conversion of data between encodings at the time you make the change.
There are other things you need to be aware of when you add support for UTF-8 to your website.
SET NAMES utf8
when you make the connection.