Error while reading file. This is an encoding problem that python is very prone to encounter when reading files. The solution is to add encoding=’ISO-8859-1′.
Since the default ftp download is ascii mode, the downloaded file encoding is iso8859-1.
Similar Posts:
- [Solved] Python Numpy Data load error: Unicode error: unpicking a python object failed: Unicode decodeerror
- UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1:
- [Solved] Pandas Parses MovieLens 1M Dataset Error: UnicodeDecodeError
- PIP install troubleshooting under Windows [How to Solve]
- Non-ASCII character ‘\xe8’ in file xxx.py on line 8, but no encoding declared
- [Solved] UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x89 in position 0: invalid start byte
- After the JVM is started, setting the system property file.encoding again cannot affect the default encoding of the system & sun.jnu.encoding
- [Solved] Java compilation error: unmapped character encoding GBK
- [Solved] TypeError: string indices must be integers, not str
- Linux Vsftp error: TP folder error [How to Solve]