bugy / script-server

Web UI for your scripts with execution management
Other
1.57k stars 248 forks source link

Add possibility to define script encoding #421

Open bugy opened 3 years ago

bugy commented 3 years ago

At the moment Script server is picking encoding automatically from an environment. However, some scripts are using a different encoding, so it would be helpful to allow setting script encoding in a configuration file

yuxiaoli commented 1 week ago

Is there a way to force Script server to pick utf-8 encoding? print statements are now all broken if the str is not ascii. I've tried set PYTHONIOENCODING=utf-8 but no luck.

bugy commented 1 week ago

Hi @yuxiaoli , script server uses utf-8 by default May be you can share your script output (the log file), so i could check? You can send it to my email buggygm@gmail.com