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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 4686: invalid start byte #21

Open
Murasame457 opened this issue Dec 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Murasame457
Copy link

No description provided.

@Eddycrack864 Eddycrack864 added the bug Something isn't working label Dec 4, 2024
@Eddycrack864
Copy link
Owner

Interesting...

You could try these solutions:

  1. Enable Use Unicode UTF-8 for worldwide language support
  2. In UVR5-UI\env\Lib\site-packages\gradio_i18n\i18n.py (line 380) add errors="replace" Like this:
    with open(translation, "r", encoding="utf-8", errors="replace") as f: # Force utf-8 encoding
  3. Remove the Turkish translation in UVR5-UI/assets/languages/translation.yaml remove from line 779 where it starts with tr: until the start of the Hindi translation. Also in UVR5-UI/app.py on line 600 remove "tr"

The error is in the Turkish translation, but I have not been able to reproduce the error on my end.

@ColbyDash
Copy link

Interesting...

You could try these solutions:

  1. Enable Use Unicode UTF-8 for worldwide language support
  2. In UVR5-UI\env\Lib\site-packages\gradio_i18n\i18n.py (line 380) add errors="replace" Like this:
    with open(translation, "r", encoding="utf-8", errors="replace") as f: # Force utf-8 encoding
  3. Remove the Turkish translation in UVR5-UI/assets/languages/translation.yaml remove from line 779 where it starts with tr: until the start of the Hindi translation. Also in UVR5-UI/app.py on line 600 remove "tr"

The error is in the Turkish translation, but I have not been able to reproduce the error on my end.

Not OP but just chiming in to say that #1 didn't work for me personally while #2 did turned out to do the trick. So, thanks for providing these solutions, man! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants