回答編集履歴
1
間違えた
test
CHANGED
@@ -63,4 +63,4 @@
|
|
63
63
|
'🙏'
|
64
64
|
```
|
65
65
|
"サロゲートペアのかたわれを拒絶しない"ハンドラ付きutf-16でencodeして、decodeするという[イディオムがある](https://stackoverflow.com/questions/38147259/how-can-i-convert-surrogate-pairs-to-normal-string-in-python)ようです。
|
66
|
-
これで回避するか、
|
66
|
+
これで回避するか、encode時に`errors='ignore'`指定してエラーを[全部無視する](https://docs.python.org/ja/3/library/codecs.html#error-handlers)とかで対応することになるでしょうか。
|