-
Notifications
You must be signed in to change notification settings - Fork 41
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 #75
Comments
As it seems it has not occurred again, I'll be closing this one unless someone has a JS snippet that can reproduce the issue |
I get the same error when running the example: python3.11 -m venv venv
. venv/bin/activate
pip install dukpy
python import dukpy
dukpy.typescript_compile("console.log('hi')") # or any other code
Using the cli gives the same error |
I'm unable to reproduce the issues locally, is there anything specific to the system that might be influencing the encoding? Maybe the system locale isn't utf-8 or something like that? (even though that shouldn't matter)
|
I've tried it on another machine and it works there. Both machines are running linux mint (based on ubuntu 22.04) with I downloaded the repo and think I found out what is going wrong:
The emoji is represented in the I see there's a test function:
If you change the unicode character 華 to something like 🏠, I predict you'll get the same exception. |
Thanks, this is helpful, I'll try to debug it as soon as I can |
I have (partly) solved the issue (I think): #78 If you want to close my PR and rather debug it yourself, I also understand of course! |
@robinvandernoord @paulocoutinhox would you mind testing with https://github.com/amol-/dukpy/pull/79/files ? |
Can you create a new version/release? |
Hi,
Im getting this error on render.com:
Do you know what can be wrong?
The text was updated successfully, but these errors were encountered: