dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
553 stars 40 forks source link

Minor Issue - If the code has © symbol it won't run after using minifier... #59

Closed TheWicklowWolf closed 1 year ago

TheWicklowWolf commented 1 year ago

When I try to run the converted code it returns the following error: (unicode error) 'utf-8' codec can't decode byte 0xa9 in position 29: invalid start byte

I had a string that had a copyright symbol, I've remove the symbol and it works.

Thanks

dflook commented 1 year ago

Hello @TheWicklowWolf, what are the versions of python and python-minifier that you are using?

TheWicklowWolf commented 1 year ago

python 3.11 python-minifier 2.7

dflook commented 1 year ago

I can't reproduce this in my linux or macos environments. Are you using windows? This could be related to #57

TheWicklowWolf commented 1 year ago

Yes using Windows, that makes sense. Thanks for you help