#11030: File uploads break on non english filesystem encoding
-------------------------------------------+--------------------------------
          Reporter:  Honza_Kral            |         Owner:  nobody            
            Status:  closed                |     Milestone:                    
         Component:  File uploads/storage  |       Version:  1.2               
        Resolution:  wontfix               |      Keywords:  file path encoding
             Stage:  Unreviewed            |     Has_patch:  1                 
        Needs_docs:  0                     |   Needs_tests:  0                 
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by kmtracey):

  * status:  reopened => closed
  * resolution:  => wontfix

Comment:

 The correct fix here is to set up the environment for your running code so
 that unicode can be passed to the file system functions. Django assuming
 utf-8 is just wrong; some file systems do not use that encoding and thus
 Django assuming that encoding for uploaded files quietly corrupts file
 names on those systems. That's worse than a loud error. There is some doc
 on how to set up the environment for Apache here:
 http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#if-you-
 get-a-unicodeencodeerror. That doc does belong in a more prominent place,
 not buried in a section on a deployment method that is no longer the
 recommended one, but fixing the doc should be the subject of a different
 ticket.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11030#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to