title: PyQt Greek letters encoding
body: <p>I have a python program and I am using <code>pyqt</code>. I use <code>QFileDialog</code> to select directory and then run a script with that directory. The problem is that if the directory name is in Greek the program stops with exception </p>
  
  <pre><code>ascii codec can't encode characters in position 
  </code></pre>
  
  <p>If the name of the directory is in English everything works fine.
  How can i solve that?</p>
  
  <pre><code>try:
              directory = QtGui.QFileDialog.getExistingDirectory(MainWindow,"Please select directory ") #Select the directory for check   
  
              if directory != "":
                  directory = str(directory)
  
                  self.updatedirectory(directory)
          except Exception as e:    
              self.AlertMessage(e)
  </code></pre>