Kozea / pygal

PYthon svg GrAph plotting Library
https://www.pygal.org
GNU Lesser General Public License v3.0
2.62k stars 411 forks source link

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

Open oleg-aryutkin opened 1 year ago

oleg-aryutkin commented 1 year ago

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' % (