#8965: UnicodeEncodeError in template path after migration from Django 0.96 to 
1.0
------------------------------------+---------------------------------------
          Reporter:  anonymous      |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  Uncategorized  |       Version:  1.0   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by Daniel Pope <[EMAIL PROTECTED]>):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 {{{settings.FILE_CHARSET}}} is irrelevant: that's the encoding for file
 data, not paths.

 Under Linux paths are effectively stored as binary. Though characters like
 : and / are reserved, everything else is stored as-is, which means that
 when you have non-ASCII characters in paths they are just stored in the
 character set defined by the application's locale. A locale mismatch
 between the Apache process and your shell could cause this.

 For the purposes of this ticket, could please type out the paths you want
 Django to use in full and let us know the results of writing the setting
 as

 {{{
 TEMPLATE_DIRS = [u"/foo/bar/para\xedso/templates/"]
 }}}

 versus

 {{{
 import locale
 TEMPLATE_DIRS =
 [u"/foo/bar/para\xedso/templates/".encode(locale.getpreferredencoding())]
 }}}

 ?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8965#comment:1>
Django Code <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