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

Non-ASCII (Russian) text in image is not supported #4

Open
aleksejrs opened this issue Feb 23, 2013 · 0 comments
Open

Non-ASCII (Russian) text in image is not supported #4

aleksejrs opened this issue Feb 23, 2013 · 0 comments

Comments

@aleksejrs
Copy link

On GNU/Linux, when trying to generate cards with the string "тест" or any other Russian text:

Traceback (most recent call last):
File "/home/user/Anki/addons/image_occlusion_2/image_occlusion.py", line 130, in add_notes_non_overlapping
svg = etree.fromstring(svg_contents)
File "/home/user/Anki/addons/image_occlusion_2/etree/ElementTree.py", line 1301, in XML
parser.feed(text)
File "/home/user/Anki/addons/image_occlusion_2/etree/ElementTree.py", line 1641, in feed
self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 186294-186297: ordinal not in range(128)

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