Ticket #10426: patch_django_10426.diff

File patch_django_10426.diff, 1.1 KB (added by David Larlet, 15 years ago)

My English is very approximative, please review :)

  • docs/howto/deployment/modpython.txt

    378378.. _Expat Causing Apache Crash: http://www.dscpl.com.au/articles/modpython-006.html
    379379.. _mod_python FAQ entry: http://modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp
    380380.. _Getting mod_python Working: http://www.dscpl.com.au/articles/modpython-001.html
     382If you get a UnicodeEncodeError
     385If you're taking advantage of the internationalization features of Django
     386(see :ref:`topics-i18n`), you may come across a curious problem.
     387Namely, uploading of non-ascii filenames with the storage system
     388with the default Apache settings on most systems will trigger
     389a ``UnicodeEncodeError`` exceptions when calling functions like ``os.path()``.
     390To avoid these issues, ensure that the following lines are included in your
     391Apache ``envvars`` file (typically found in ``/etc/apache2/envvars``)::
     393    export LANG='en_US.UTF-8'
     394    export LC_ALL='en_US.UTF-8'
     396Then restart Apache.
Back to Top