How to convert wrongly encoded data to UTF-8?

后端 未结 1 537
春和景丽
春和景丽 2020-12-29 10:23

I\'m working with data from an old mysql database. There\'s a table in this database with a string column that has its encoding set to \"cp1252 West European (latin1)\" (sam

1条回答
  •  一生所求
    2020-12-29 11:14

    select convert(binary convert(field_name using latin1) using utf8) from table_name
    

    If this displays correctly you can do update.

    0 讨论(0)
提交回复
热议问题