dbfread icon indicating copy to clipboard operation
dbfread copied to clipboard

UnicodeEncodeError for special charater

Open aman918raj opened this issue 5 years ago • 2 comments

UnicodeEncodeError: 'utf-8' codec can't encode characters. This error is coming when i am using utf-8 encoding. The file is having value like below: ABCâ XYZ 123 dbf = DBF(input_path, encoding="utf-8")

When i used encoding="iso-8859-1" then i am not getting an error but its getting converted to ABC XYZ 123 dbf = DBF(input_path, encoding="iso-8859-1")

aman918raj avatar Jun 05 '20 16:06 aman918raj

Need help quickly...

aman918raj avatar Jun 05 '20 16:06 aman918raj

I'm sorry I haven't responded until now. I hope you have found a solution to your problem. If not let me know and I'll try to help you.

DBF files with UTF-8 encoding are rare so I suspect the file is using another 8-bit encoding.

olemb avatar Dec 21 '20 04:12 olemb