#5867: Python default encoding would be _really_ useful in Unicode documentation
-------------------------------+--------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody                  
  Status:  new                 |   Component:  Documentation           
 Version:  SVN                 |    Keywords:  unicode default encoding
   Stage:  Unreviewed          |   Has_patch:  1                       
-------------------------------+--------------------------------------------
 While upgrading Django we collided upon a numberous amount of Unicode
 errors only to find, after looking for a long time, that there was a
 simple and easy way out; by setting the default encoding for Python. This
 can simple be done by dropping the following snipplet somewhere in the
 Python path:

 {{{
 # sitecustomize.py
 # this file can be anywhere in your Python path,
 # but it usually goes in ${pythondir}/lib/site-packages/
 import sys
 sys.setdefaultencoding('iso-8859-1')
 }}}


 We feel that it would be really useful to mention this in the Unicode page
 of the Django documentation. The script itself we have found on
 [http://www.diveintopython.org/xml_processing/unicode.html].

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5867>
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