title: Opening files in a directory with python, trouble with encoding
body: <pre><code>import os
  listing = os.listdir(path)
  for infile in listing:
      print infile
      f = open(os.path.join(path, infile), 'r')
  </code></pre>
  
  <p>I have made a script in python that iterates through all files in a directory and opens them. It works ok, the problem arises with the names of some files. The name of the file is Trade_Map_-_List_of_products_exported_by_Côte_d'Ivoire, but when its tries to open it cant I get this error </p>
  
  <p><code>IOError: [Errno 2] No such file or directory: "C:\\Users\\Borut\\Downloads\\GC downloads\\izvoz\\Trade_Map_-_List_of_products_exported_by_Co^te_d'Ivoire.txt"</code> </p>
  
  <p>The real name has Côte_d'Ivoire in the end, while the name I get when I iterate through listdir has  Co^te_d'Ivoire in the end. What is wrong??</p>