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

Update converter.py #430

Conversation

mydreamworldpolly
Copy link
Contributor

Fix issues:
#345 #326 When translate Chinese pdf to English, an error occurs: UnicodeDecodeError: 'utf-8' codec can't decode byte....

Fix issues:
Byaidu#345
Byaidu#326
When translate Chinese pdf to English, an error occurs:
UnicodeDecodeError: 'utf-8' codec can't decode byte....
@Byaidu
Copy link
Owner

Byaidu commented Jan 8, 2025

already fixed with font = str(font)

@Byaidu Byaidu closed this Jan 8, 2025
@mydreamworldpolly
Copy link
Contributor Author

already fixed with font = str(font)

I don't think so. Yesterday, I just used it to try to translate a Chinese PDF saved from a PPT. Even with the modifications you mentioned, errors still occur. Only by modifying it in the way I submitted can the issue be bypassed and the entire PDF be translated.

@Byaidu Byaidu reopened this Jan 8, 2025
@Byaidu Byaidu merged commit 03c5cd4 into Byaidu:main Jan 8, 2025
1 of 2 checks passed
@Byaidu
Copy link
Owner

Byaidu commented Jan 8, 2025

Thanks!

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