How to open a file with chinese name in python
<p>I am trying to open a file in "w" mode with "open()" function in python.</p>

<p>The filename is : 仿宋人笔意.jpg.</p>

<p>The open function fails with this filename but succeeds with normal files.</p>

<p>How can I open a file with names which are not in English in python?</p>

<p>My code is as follows:</p>

<pre><code>try:
    filename = urllib.quote(filename.encode('utf-8'))
    destination = open(filename, 'w')
    yield("&lt;br&gt;Obtained the file reference")
except:
    yield("&lt;br&gt;Error while opening the file")
</code></pre>

<p>I always get "Error while opening the file" for non-english filenames.</p>

<p>Thanks in advance.</p>
