title: How can I convert special characters in a string back into escape sequences?
body: <p>Suppose I have a string like <code>'a\tb'</code>. If I <code>print</code> it, I will see <code>a    b</code>. But I want to see <code>a\tb</code> instead. How can I convert my string so it will print like that?</p>