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

fix unicode issue. #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ELBEQQAL94
Copy link

The error you're encountering is due to a character encoding issue when reading the file odyssey.txt. The TextLoader is attempting to read the file with a default encoding that can't decode certain characters in the file, leading to a UnicodeDecodeError.

To resolve this, you can explicitly specify the encoding when loading the text file. In most cases, using the "utf-8" encoding should work, but depending on the file's actual encoding, you may need to use a different one.

@jaideeppoojary
Copy link

The error you're encountering is due to a character encoding issue when reading the file odyssey.txt. The TextLoader is attempting to read the file with a default encoding that can't decode certain characters in the file, leading to a UnicodeDecodeError.

To resolve this, you can explicitly specify the encoding when loading the text file. In most cases, using the "utf-8" encoding should work, but depending on the file's actual encoding, you may need to use a different one.

Thanks for the fix and the detailed explanation.

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

Successfully merging this pull request may close these issues.

2 participants