title: How to read unicode filename in python?
body: <p>I saw lot and lot of forums about unicode, utf-8 but unable to do this.
  I am using <code>Windows</code>. </p>
  
  <p>Let's have two folder:</p>
  
  <pre><code>E:\old
  ---- திருக்குறள்.txt
  ---- many more unicode named files
  
  E:\new
  ----
  </code></pre>
  
  <p>Language : Tamil</p>
  
  <p>Assume I want to move file to E:\new. I cannot access unicode filename properly.</p>
  
  <p><strong>What I Tried</strong></p>
  
  <pre><code>import sys
  import os
  from shutil import copyfile
  
  path = 'E:/old/'
  for root, _, files in os.walk(ur''.join(path)):
      files = [f for f in files]
      copyfile(files[0].encode('utf-8').strip(),'E:/new/')   //just for example
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Traceback (most recent call last):
    File "new.py", line 8, in &lt;module&gt;
      copyfile(files[0].encode('utf-8').strip(),'E:/new/')
    File "C:\Python27\lib\shutil.py", line 82, in copyfile
      with open(src, 'rb') as fsrc:
  IOError: [Errno 2] No such file or directory: '\xe0\xae\xa4\xe0\xae\xbf\xe0\xae\xb0\xe0\xaf\x81\xe0\xae\x95\xe0\xaf\x8d\xe0\xae\x95\xe0\xaf\x81\xe0\xae\xb1\xe0\xae\xb3\xe0\xaf\x8d.txt'
  </code></pre>