0
4

1 回答 1

1

You have not shared much information in your question, but according to the sample you gave:

↑ (has been imported as) ↑

This looks like you had already stored it as UTF-8 into the export file but while importing you told the file would be Windows-1252 encoded. It then was re-encoded a second time into UTF-8.

↑                                 UTF8: \xE2\x86\x91    UPWARDS ARROW (U+2191)

â  - Windows 1252     \xE2 226    UTF8: \xC3\xA2        LATIN SMALL LETTER A WITH CIRCUMFLEX (U+00E2)
†  - Windows 1252     \x86 134    UTF8: \xE2\x80\xA0    DAGGER (U+2020)
‘  - Windows 1252     \x91 145    UTF8: \xE2\x80\x98    LEFT SINGLE QUOTATION MARK (U+2018)

In MySQL the name of the Windows 1252 character set is latin1 (cp1252 West European, specific differences documented), for a full list please see Character Sets and Collations That MySQL Supports.

That is why the solution in the related Q&A works.

于 2012-12-14T20:13:35.817 回答