Detecting utf8 broken characters in MySQL

后端 未结 18 2126
广开言路
广开言路 2020-12-02 05:03

I\'ve got a database with a bunch of broken utf8 characters scattered across several tables. The list of characters isn\'t very extensive AFAIK (áéíúóÁÉÍÓÚÑñ)

Fixing

18条回答
  •  星月不相逢
    2020-12-02 05:34

    The middle step may not have been necessary since TEXT and BLOB are the same.

    This had the effect of correcting all incorrectly encoded data but data which was previously correct was truncated at the first multibyte character.

提交回复
热议问题