How to convert mysql latin1 to utf8

前端 未结 3 1292
遇见更好的自我
遇见更好的自我 2020-12-29 11:39

I inherited a web system that I need to develop further. The system seems to be created by someone who read two chapters of a PHP tutorial and thought he could code...

3条回答
  •  滥情空心
    2020-12-29 11:52

    I managed to solve it by running updates on text fields like this:

    UPDATE table SET title = CONVERT(CONVERT(CONVERT(title USING latin1) USING binary) USING UTF8)
    

提交回复
热议问题