Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError for special charater #44

Open
aman918raj opened this issue Jun 5, 2020 · 2 comments
Open

UnicodeEncodeError for special charater #44

aman918raj opened this issue Jun 5, 2020 · 2 comments

Comments

@aman918raj
Copy link

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
Copy link
Author

Need help quickly...

@olemb
Copy link
Owner

olemb commented Dec 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants