-
Notifications
You must be signed in to change notification settings - Fork 134
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
Rendering non-ASCII charcaters fails #63
Comments
Confirmed this does not happen in Edge, Chrome, or Firefox despite there being no encoding declaration. So assuming I can repro with svg2png, it's our bug... |
Hi! Looks like the problem happens when phantomjs parses Base64-encoded SVG from stdin with I'm not sure, what is the best way to solve it. As a workaround, I can suggest replacing all non-ASCII characters to their appropriate HTML codes in your SVG:
worked for me. |
@losnikitos thanks for the diagnosis! It sounds like this is something svg2png should fix for people, e.g. by using a better base64 encoder/decoder. Now that I understand the issue better I can hopefully fix it soon, or maybe someone can send a pull request. |
Closes #63, by sending the data to PhantomJS as UTF-8 instead of as base64.
Trying to PNG this SVG:
...gets me this:
The text was updated successfully, but these errors were encountered: