timothycrosley / jiphy

Your client side done in a jiphy. Python to JavaScript 2-way converter.
MIT License
585 stars 73 forks source link

rise gbk error #36

Open xxller opened 1 year ago

xxller commented 1 year ago

Traceback (most recent call last): File "D:\pycharm_project\github\jiphy\venv\Scripts\jiphy-script.py", line 33, in sys.exit(load_entry_point('jiphy==1.2.2', 'console_scripts', 'jiphy')()) File "D:\pycharm_project\github\jiphy\venv\lib\site-packages\jiphy-1.2.2-py3.9.egg\jiphy\main.py", line 115, in main UnicodeDecodeError: 'gbk' codec can't decode byte 0xac in position 69453: illegal multibyte sequence

Eleven1202 commented 1 year ago

me too

Eleven1202 commented 1 year ago

你可以试试 import jiphy

with open("bundles.js", "r", encoding="utf-8") as fp: exec_js = fp.read() jiphy.to.python(exec_js)