What does ‘UnicodeError: ASCII [decoding,encoding] error: ordinal not in range(128)’ mean?
This error indicates that your Python installation can handle only 7-bit ASCII strings. There are a couple ways to fix or work around the problem. If your programs must handle data in arbitrary character set encodings, the environment the application runs in will generally identify the encoding of the data it is handing you. You need to convert the input to Unicode data using that encoding. For example, a program that handles email or web input will typically find character set encoding information in Content-Type headers. This can then be used to properly convert input data to Unicode.
Related Questions
- What do these error messages mean: "invalid byte #x94 in CHARSET:ASCII conversion" and "character #u00B3 cannot be represented in the character set CHARSET:ASCII"?
- What does UnicodeError: ASCII [decoding,encoding] error: ordinal not in range(128) mean?
- What does the message Error: date out of range. mean from the encryption software?