Python surrogates not allowed

Describes the cause and action for error messages.


Error Message(English):
surrogates not allowed

Resolution


関連リンク


Pythonでサロゲートペア -- ほっけの逆襲 - 今川館
http://imagawa.hatenadiary.jp/entry/2016/12/25/193000

Python 3.x - Python3のUnicodeEncodeErrorについて|teratail
https://teratail.com/questions/157481

NAS上でスクリプトを自動実行した時に起きたトラブル ? 秋NAS
https://autumnas.wordpress.com/2016/10/31/trouble_autoexecute_script_on_nas/

Python 3 での文字列とバイト列の相互変換と16進数表示 - Qiita
https://qiita.com/masakielastic/items/2a04aee632c62536f82c

Python can't encode with surrogateescape - Stack Overflow
https://stackoverflow.com/questions/31898353/python-cant-encode-with-surrogateescape

UnicodeEncodeError: 'utf-8' codec can't encode character ...
https://stackoverflow.com/questions/47437132/unicodeencodeerror-utf-8-codec-cant-encode-character-ud・・・

'utf-8' codec can't encode character '\udcc2': surrogates not ...
https://stackoverflow.com/questions/43335607/utf-8-codec-cant-encode-character-udcc2-surrogates-not-・・・

"surrogateescape" cannot escape certain characters
https://stackoverflow.com/questions/21116089/surrogateescape-cannot-escape-certain-characters

Python 3: os.walk() file paths UnicodeEncodeError: 'utf-8 ...
https://stackoverflow.com/questions/27366479/python-3-os-walk-file-paths-unicodeencodeerror-utf-8-co・・・

Issue 13717: print fails on unicode '\udce5' surrogates not ...
https://bugs.python.org/issue13717



Name:
Comment:



[return to Python エラーコード一覧]