title: How to convert hexadecimal string to character with that code point?
body: <p>I have the string <code>x = '0x32'</code> and would like to turn it into <code>y = '\x32'</code>.<br>
  Note that <code>len(x) == 4</code> and <code>len(y) == 1</code>.</p>
  
  <p>I've tried to use <code>z = x.replace("0", "\\")</code>, but that causes <code>z = '\\x32'</code> and <code>len(z) == 4</code>.  How can I achieve this?</p>