Skip to content
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

(C) sign in copyright notice leads to crash on Japanese Windows. #530

Open
oleg-aryutkin opened this issue Aug 23, 2022 · 0 comments
Open

Comments

@oleg-aryutkin
Copy link

oleg-aryutkin commented Aug 23, 2022

chart = ygal.dot( our stuff )
chart.render(is_unicode=True)
weh
the resulting string contains unicode character '\xa9', the copyright sign, which Windows is unable to handle on Japanese Windows, leading to exception:

UnicodeEncodeError: 'cp932' codec can't encode character '\xa9' ...

Suggest you change it to (C) instead of special character.

in file svg.py line 72 change copyright notice:

line 72 'Generated with pygal %s (%s) Copyright Kozea 2012-2016 on %s' % (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant