Qrome / marquee-scroller

Marquee Scroller Clock News Weather and More
https://www.thingiverse.com/thing:2867294
MIT License
328 stars 158 forks source link

Character settings #25

Open ghost opened 6 years ago

ghost commented 6 years ago

Is it possible to configure Marquee to use UTF8?

resnbl commented 6 years ago

Appending "... charset='UTF-8'>" to the "meta" tag in the getHeader() method appears to fix UTF-8 issues on the generated web page.

Unfortunately, although the APIs are coded in JSON, which is inherently coded as UTF-8, the ArduinoJson library doesn't handle that correctly. It would require storing character data as 16-bit values or translation to an 8-bit, non-ASCII scheme such as ISO-8859-01. This is unlikely to ever happen in a memory-constrained environment like Arduinos...