Im not sure if this topic has already been dicussed here, but im new (i made the account just to tell you guys this) I was exporting the code from one of my projects in RTF format. every time it came across a backslash character it screws up (Not because of the exporter, but because of RTF format) if the \ token is unrecognized it will simply ingore it.
eg. "Hello\0 World" would become "Hello0 World"
And it gets realy messed up with other characters such as \' or \"
BUT double backslashes work fine "Hello\\0 World" becomes "Hello\0 World"
And that is how it should be displayed, but that wont work in code
The solution is simple enough though, all you have to do is put a recognized in the RTF exporter. If the current character is a backslash simply output it twice
outputRTFChar(currentChar);
if (currentChar == '\\') outputRTFChar(currentChar);