title: Test if a field in csv file is utf-8 python
body: <p>I want to check if a specific column in csv file only  contain utf-8</p>
  <p>I use this code</p>
  <pre><code>try:
     name.decode('utf-8')
  except UnicodeError:
     return &quot;error&quot; 
  </code></pre>
  <p>Is that right?How to test it anybody has test case because i dont know how non utf-8 looks like ?</p>
  <p>Python 2.6</p>