juba / pyobsplot

Observable Plot in Jupyter notebooks and Quarto documents
https://juba.github.io/pyobsplot/
MIT License
203 stars 7 forks source link

Add encoding utf-8 for save_to_file #22

Closed harrylojames closed 1 year ago

harrylojames commented 1 year ago

Stumbled on this when testing the new save_to_file functionality. Hope a pull request is okay! Feel free to make or suggest changes if it doesn't look quite right.

When saving to SVG if utf-8 isn't specified encoding a minus symbol raises 'charmap' codec can't encode character '\u2212'.

juba commented 1 year ago

Merged, thanks a lot !