Decode string with hidden control characters
<p>I have a file containing lines with hidden control characters. An example line looks like this:</p>

<pre><code>go!^Mbap^[&lt;80&gt;
</code></pre>

<p>The <code>^M</code>, <code>^[</code>, and <code>&lt;80&gt;</code> are hidden characters. When I print the line I do not see these characters. However, if I use the <code>repr()</code> function I can see these character represented by things like, <code>\x1b0</code>. </p>

<p>How can I change these characters into a unicode character of my choosing? </p>

<p>I've tried to use the string modules <code>translate()</code> function and also regular expressions, but I can't seem to convert these hidden characters.</p>
