bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.41k stars 505 forks source link

toSVG issue with non-western encoded text #356

Open lambda0xff opened 1 year ago

lambda0xff commented 1 year ago

with a html element containing non western text (chinese, japanese, etc) the generated SVG has an error message: This page contains the following errors: error on line 9 at column 1125257: Encoding error

Steps To Reproduce:

try to generate svg with a node containing chinese or japanese text.

vivcat[bot] commented 1 year ago

👋 @lambda0xff

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.