Hello,
Below is a snippet from my code, the toString function is working perfectly except for the fact that it does not replace Tabs or New Lines (and probably others?)
I made a workaround which works fine for the new lines (see the \\n below) but am still confused about the tabs and to if there are other characters also not being replaced?
Any help is much appreciated, thanks!
Below is a snippet from my code, the toString function is working perfectly except for the fact that it does not replace Tabs or New Lines (and probably others?)
I made a workaround which works fine for the new lines (see the \\n below) but am still confused about the tabs and to if there are other characters also not being replaced?
Code:
var newStr = ""; rl = "\\n"+textStream.ReadLine(); for(var i = 0; i < rl.length; i++) { hc = (rl.charCodeAt(i)).toString(16); if (hc.length==2) { newStr += hc; } }
Comment