mysql - Is it safe to update tables from latin1 to utf8 -
whilst doing checking client see if site still functioning found random page contained bunch of weird characters ¿½
.
i think has tables having latin1
encoding instead of utf-8
. seeing no other pages affected use same table there error. did check if text safe , making sure clean text.
so have 2 questions, main 1 being safe update 1 table utf8
, if not causes error , wondered why affects 1 page. (side note website built using typo3)
ofcourse have live example's links are:
site 1: weird text characters
site 2: same table, no weird characters
ultimately client connecting database decides how encodings handled; that's known connection encoding. whatever encoding text stored in mysql, converted on fly to/from client's connection encoding. such, changing underlying column's storage utf8
doesn't affect anything.
however, in won't "fix" anything. characters still garbage. you'll have convert actual characters correct data. otherwise you'll have "¿½" stored encoded utf8 instead of "¿½" stored encoded latin1. , changing characters will affect other client has been doing wrong far, client side needs fixed @ same time.
Comments
Post a Comment