阅读背景:

Python,转换4字节字符以避免MySQL错误“字符串值不正确:”

来源:互联网 

I need to convert (in Python) a 4-byte char into some other character. This is to insert it into my utf-8 mysql database without getting an error such as: "Incorrect string value: '\xF0\x9F\x94\x8E' for column 'line' at row 1"I need to convert (in Python) a 4-byte char int




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: