Gábor Farkas:
> Michael Radziej wrote:
>>    * What encoding does python use if you pass unicode to open()?
> for os.listdir it uses sys.getfilesystemencoding(), so i assume it does 
> the same for open().
> 
> so usually it does the correct thing.
> 
> so using unicode filenames are probably fine, but then we are again back 
> at the to-unicodify-or-not-to-unicodify-django question :)

No, I'd propose simply to use the file system's encoding for files
within the file system, that's all, if there's no compelling reason
to use punycode. There's no connection to "unicode everywhere".

Michael


-- 
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49-911-9352-0 - Fax +49-911-9352-100

http://www.noris.de - The IT-Outsourcing Company

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to