title: hash unicode string in python
body: <p>I try to hash some unicode strings:</p>
  
  <pre><code>hashlib.sha1(s).hexdigest()
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-81: 
  ordinal not in range(128)
  </code></pre>
  
  <p>where <code>s</code> is something like:</p>
  
  <blockquote>
    <p>œ∑¡™£¢∞§¶•ªº–≠œ∑´®†¥¨ˆøπ“‘åß∂ƒ©˙∆˚¬…æΩ≈ç√∫˜µ≤≥÷åйцукенгшщзхъфывапролджэячсмитьбююю..юбьтијџўќ†њѓѕ'‘“«««\dzћ÷…•∆љl«єђxcvіƒm≤≥ї!@#$©^&amp;*(()––––––––––∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆∆•…÷ћzdzћ÷…•∆љlљ∆•…÷ћzћ÷…•∆љ∆•…љ∆•…љ∆•…∆љ•…∆љ•…љ∆•…∆•…∆•…∆•∆…•÷∆•…÷∆•…÷∆•…÷∆•…÷∆•…÷∆•…÷∆•…</p>
  </blockquote>
  
  <p>what should I fix?</p>