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 #1

Open
Vekyl opened this issue Nov 23, 2022 · 1 comment
Open

UnicodeEncodeError #1

Vekyl opened this issue Nov 23, 2022 · 1 comment

Comments

@Vekyl
Copy link

Vekyl commented Nov 23, 2022

UnicodeEncodeError: 'charmap' codec can't encode character '\ufb01' in position 17: character maps to
It creates eng folder until a certain moment then it stops and gives a random unicode error. I'm using "utf-8" as unicode.

@Vekyl Vekyl closed this as completed Nov 23, 2022
@Vekyl Vekyl reopened this Nov 23, 2022
@Vekyl Vekyl changed the title FileNotFoundError: [WinError 2] UnicodeEncodeError Nov 25, 2022
@NoodlesXNoodles
Copy link

Try this:

Not:
with open(training_text_file, "r") as input_file:
But:
file = open(filename, encoding="utf8") as input_file:

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