Python unicode surrogates not allowed

Describes the cause and action for error messages.


Error Message(English):
unicode 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: os.walk() file paths UnicodeEncodeError: 'utf-8' codec ...
https://stackoverflow.com/questions/27366479/python-3-os-walk-file-paths-unicodeencodeerror-utf-8-co・・・

Python 2.7: Strange Unicode behavior
https://stackoverflow.com/questions/53140775/python-2-7-strange-unicode-behavior

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

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

How to work with surrogate pairs in Python?
https://stackoverflow.com/questions/38147259/how-to-work-with-surrogate-pairs-in-python

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

Issue 19846: Python 3 raises Unicode errors with ...
https://bugs.python.org/issue19846



Name:
Comment:



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