エラーコードポータル
PythonPythonエラーコード

UnicodeError

UnicodeError

コード UnicodeError · Pythonが報告した問題です。

Unicode 関連のエンコードまたはデコード エラーが発生したときに発生します。これは、ValueError のサブクラスです。 UnicodeError には、エンコードまたはデコードのエラーを説明する属性があります。たとえば、err.object[err.start:err.end] は、コーデックが失敗した特定の無効な入力を示します。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

Raised when a Unicode-related encoding or decoding error occurs. It is a subclass of ValueError. UnicodeError has attributes that describe the encoding or decoding error. For example, err.object[err.start:err.end] gives the particular invalid input that the codec failed on.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。