Kozea / pygal

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

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

Open oleg-aryutkin opened 2 years ago

oleg-aryutkin commented 2 years 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' % (