-
-
Notifications
You must be signed in to change notification settings - Fork 136
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 0x80 in position 0: invalid start byte #219
Comments
Quick update here, I'm convinced now that this is actually a bug in Lua in how Unicode characters are handled. And using sub, we're splitting the unicode character, which breaks decoding in python later on. |
Minimal reproduction: |
You can set |
Hi all, we would need some help regarding an issue we've been seeing in our lupa related code:
From what he have seen, this happens when the lua code calls a python function after having used
string.sub
on a string containing’
(byte 153) or "”" (byte 226).I've built a minimal repo that reproduces the issue: https://github.com/Step2Web/lupa-encoding-issue
We'd greatly appreciate some help in how to resolve this. Thank you in advance and please let me know if there's any other information you'll need.
The text was updated successfully, but these errors were encountered: