MySQL 来自捷克语的 c caron (hatscheck) 的 UTF-8 问题
MySQL UTF-8 issue with c caron (hatscheck) from Czech language
此问题源于 TYPO3,我无法在 RTE 中插入 c caron (č),而 s caron (š) 有效。但是很快我发现,当我直接在phpMyAdmin中插入一个c caron时,问题也出现了。
DB 中的字符集和 table 都是 UTF8_unicode_ci
,我也试过 UTF8mb4_unicode_ci
但没有成功。
错误:Warning: #1366 Incorrect string value: '\xC4\x8D \x0D\x0A' for column 'bodytext' at row 1
提前致谢!
PS:与 Ś 类似的问题 Warning: #1366 Incorrect string value: '\xC5\x9A' for column 'bodytext' at row 1
感谢您的评论!我发现了错误:数据库是 UTF-8,table 是 UTF-8,但字段是 Latin-1...大声笑!更改为 UTF-8,现在可以使用了。感谢您的帮助!
此问题源于 TYPO3,我无法在 RTE 中插入 c caron (č),而 s caron (š) 有效。但是很快我发现,当我直接在phpMyAdmin中插入一个c caron时,问题也出现了。
DB 中的字符集和 table 都是 UTF8_unicode_ci
,我也试过 UTF8mb4_unicode_ci
但没有成功。
错误:Warning: #1366 Incorrect string value: '\xC4\x8D \x0D\x0A' for column 'bodytext' at row 1
提前致谢!
PS:与 Ś 类似的问题 Warning: #1366 Incorrect string value: '\xC5\x9A' for column 'bodytext' at row 1
感谢您的评论!我发现了错误:数据库是 UTF-8,table 是 UTF-8,但字段是 Latin-1...大声笑!更改为 UTF-8,现在可以使用了。感谢您的帮助!