Converting control characters to escape sequences in C#

64 views Asked by At

I want to be able to see what characters a string is composed of, so how do I print a string containing '\t' and '\n' as "\\t" and "\\n" respectively? That is, I want to go in the opposite direction, converting control chars to escape sequences.

0

There are 0 answers