When Espruino outputs "m\xe9m\xe9" to the REPL it's just playing it safe with the characters it outputs and is quoting anything over 128 - that is still a 4 character string (if you check .length it'll say 4).
Graphics should behave the same either way - your issue is finding a font that has glyphs for characters above 128 as the built-in one doesn't to try and save space. What you need is FontDennis8: http://www.espruino.com/Fonts
Once that font is set you shouldn't have to do anything to the string - it should 'just work'
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm not quite sure I understand the problem?
When Espruino outputs
"m\xe9m\xe9"
to the REPL it's just playing it safe with the characters it outputs and is quoting anything over 128 - that is still a 4 character string (if you check.length
it'll say 4).Graphics should behave the same either way - your issue is finding a font that has glyphs for characters above 128 as the built-in one doesn't to try and save space. What you need is
FontDennis8
: http://www.espruino.com/FontsOnce that font is set you shouldn't have to do anything to the string - it should 'just work'