In Javascript I can type '\u00A3' to get a character using its char code. I can do this programatically to with String.fromCharCode(parseInt('00A3', 16)).
But I can’t find a way to do the same for a control character. I can type them in my source code but I want a way to generate them in code.
Sounds to me like you could just use this list: http://en.wikipedia.org/wiki/C0_and_C1_control_codes and use the character points defined there to insert them with
\uorString.fromCharCodeas in your example?PS: instead of the
parseInt, you could use a literal:0x00A3