title: Convert GBK to utf8 string in python
body: <p>I have a string.</p>
  
  <pre><code>s = u"&lt;script language=javascript&gt;alert('\xc7\xeb\xca\xe4\xc8\xeb\xd5\xfd\xc8\xb7\xd1\xe9\xd6\xa4\xc2\xeb,\xd0\xbb\xd0\xbb!');location='index.asp';&lt;/script&gt;&lt;/script&gt;"
  </code></pre>
  
  <p>How can I translate <code>s</code> into a utf-8 string? I have tried <code>s.decode('gbk').encode('utf-8')</code> but python reports error: <code>UnicodeEncodeError: 'ascii' codec can't encode characters in position 35-50: ordinal not in range(128)</code></p>