Wow, just copied the code from your response and it works - I guess this has to do with code pages differences. I write code with a Mac OS editor and load the file into thee WebIDE.
// writing in WebIDE
var aJS = JSON.stringify({txt : "012345\nabcde\näöüß"}),
// load file after using the Mac editor
var aJS = JSON.stringify({txt : "012345\nabcde\n����"}),
Maybe some quotes got effected as well .....
Many thanks, using replace was just a workaround and I am happy to remove them again.
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.
Wow, just copied the code from your response and it works - I guess this has to do with code pages differences. I write code with a Mac OS editor and load the file into thee WebIDE.
Maybe some quotes got effected as well .....
Many thanks, using replace was just a workaround and I am happy to remove them again.
2 Attachments