wavedrom / wavedrom.github.io

Digital timing diagram editor
https://wavedrom.com
MIT License
915 stars 158 forks source link

Dis-functional export SVG/PNG when UNICODE chars are present. #17

Closed drom closed 7 years ago

drom commented 8 years ago

Added UNICODE character into WaveJSON. Try Export SVG/PNG. Getting error:

Uncaught InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
drom commented 8 years ago

Originally reported here: https://github.com/drom/wavedrom/issues/137

drom commented 8 years ago

escape libraries: https://github.com/mathiasbynens/jsesc - ES6 (const, let)

alexwhittemore commented 7 years ago

Oh good, I'm not the only one :)

I was wondering why it kept exporting 0kb PNGs

udif commented 7 years ago

Will this help?

23

drom commented 7 years ago

Thanks for the help. Please try v1.4.2 https://github.com/wavedrom/wavedrom.github.io/releases/tag/v1.4.2