Yes I'm familiar with iconv (and libiconv), but to be able to convert UTF8 to what the (binary !) characters originally were, one needs to know the character encoding of the platform the UTF8 was generated on. That encoding was used to transform 0xF9 and oxF0 characters in the corresponding UTF8 characters and is needed to properly specify the 'decoding' libiconv must perform.
It remains unexplainable that a string declared as
gets transformed into something UTF8 :
Why not just leave binary valued characters in strings as they are ? After all, the string for a drawImage call is not really a string anyhow ...
(Just an opinion of someone totally unfamiliar with the inner workings of Espruino and the Web IDE.)
© Espruino, powered by microcosm.
Report a problem