Answers for "unicodedecodeerror: 'utf-8' codec can't decode byte 0xc7 in position 10:"

2

UnicodeDecodeError: 'utf-8' codec can't decode byte invalid start byte

# Use 'ISO-8859-1' instead of "utf-8" for decoding
text = open(fn, 'rb').read().decode('ISO-8859-1')
Posted by: Guest on September-23-2020
0

utf-8 codec can't decode byte python

# try this if you get the error utf-8 codec can't decode byte
# Assuming your file is pipe delimited otherwise remove sep='|'
pd.read_csv(r'C:pathtofile.csv', sep='|', encoding = "ISO-8859-1")
Posted by: Guest on August-12-2021
0

UnicodeDecodeError: ‘utf8’ codec can’t decode byte

import pandas as pd
data=pd.read_csv("C:\Employess.csv",encoding=''unicode_escape')
print(data.head())
Posted by: Guest on November-29-2021

Code answers related to "unicodedecodeerror: 'utf-8' codec can't decode byte 0xc7 in position 10:"

Python Answers by Framework

Browse Popular Code Answers by Language