title: How to compare unicode with string in python
body: <p>I try to compare value after encode base64 with string. But <code>encode64</code> does not equal to  <code>Uy6qvZV0iA2/drm4zACDLCCm7BE9aCKZVQ16bg80XiU=</code> Why does not it equal ?  </p>
  
  <pre><code>import hashlib
  hash_object = hashlib.sha256(b'Test')
  hex_dig = hash_object.hexdigest()
  encode64 = hex_dig.decode('hex').encode('base64')
  print(encode64)
  if encode64 == 'Uy6qvZV0iA2/drm4zACDLCCm7BE9aCKZVQ16bg80XiU=' :
      print("Hello")
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>Uy6qvZV0iA2/drm4zACDLCCm7BE9aCKZVQ16bg80XiU=
  </code></pre>
  
  <p>It does not print Hello.</p>