Encoding in the file is ‘windows-1252’. Use:
open('txt.tsv', encoding='windows-1252')
More Related Contents:
- How to write UTF-8 in a CSV file
- Python 3 CSV file giving UnicodeDecodeError: ‘utf-8’ codec can’t decode byte error when I print
- Changing default encoding of Python?
- Why should we NOT use sys.setdefaultencoding(“utf-8”) in a py script?
- Working with UTF-8 encoding in Python source [duplicate]
- Reading a UTF8 CSV file with Python
- Url decode UTF-8 in Python
- How to convert a file to utf-8 in Python?
- Dangers of sys.setdefaultencoding(‘utf-8’)
- How do I check if a string is unicode or ascii?
- General Unicode/UTF-8 support for csv files in Python 2.6
- How to print UTF-8 encoded text to the console in Python < 3?
- Why doesn’t Python recognize my utf-8 encoded source file?
- Why declare unicode by string in python?
- Should I use encoding declaration in Python 3?
- Python ascii utf unicode
- Loading UTF-8 file in Python 3 using numpy.genfromtxt
- Python DictWriter writing UTF-8 encoded CSV files
- ElementTree and unicode
- UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc3 in position 23: ordinal not in range(128)
- Why does this Python program send empty emails when I encode it with utf-8? [duplicate]
- Changing the “locale preferred encoding” in Python 3 in Windows
- Convert “\x” escaped string into readable string in python
- python encoding utf-8
- Python – dealing with mixed-encoding files
- UnicodeDecodeError when performing os.walk
- Pandas df.to_csv(“file.csv” encode=”utf-8″) still gives trash characters for minus sign
- A simple maths operation on a CSV column using python [closed]
- Compare two CSV files and search for similar items
- Read a base 64 encoded image from memory using OpenCv python library