Pythoneを扱っています。
絵文字を含むバイト文字(utf8mb4)が入力されエラーを起こしました。
python3
1input = b'\xe5\x85\xa5\xe9\x87\x91' 2a = input.decode('utf8')
'utf-8' codec can't decode byte 0xed in position 17: invalid continuation byte
DBは4バイト文字に対応している為、エスケープせずにユニコード文字に変換し取り込みたいのです、しかし調べましたが方法がわかりませんでした。
解答の方を宜しくお願い致します。
あなたの回答
tips
プレビュー