#10905: UnicodeEncodeError from FileUploadTests.test_unicode_file_name
-----------------------------------------------------------------------+----
          Reporter:  Richard Davies <richard.dav...@elastichosts.com>  |        
 Owner:  nobody
            Status:  new                                               |     
Milestone:  1.1   
         Component:  File uploads/storage                              |       
Version:        
        Resolution:                                                    |      
Keywords:        
             Stage:  Unreviewed                                        |     
Has_patch:  0     
        Needs_docs:  0                                                 |   
Needs_tests:  0     
Needs_better_patch:  0                                                 |  
-----------------------------------------------------------------------+----
Comment (by kmtracey):

 What is your LANG set to?  You are seeing a failure often seen under
 Apache due to an incorrect LANG setting:

 
http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi#AdditionalTweaking

 I suspect you have LANG set to something like C, which results in the
 ascii codec being used for encoding unicode file paths passed into system
 calls. As the file path for that test can't be represented in ASCII, you
 get an error.  Setting LANG to something like 'en_US.UTF-8' will cause the
 utf8 codec to be used for encoding file paths to bytestrings, and the test
 will pass.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10905#comment:2>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to