mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Improved docs regarding UTF-8 support with Apache and mod_wsgi.
This commit is contained in:
committed by
Mariusz Felisiak
parent
28f66b2783
commit
bf4be3711a
@@ -291,8 +291,8 @@ Files
|
||||
If you intend to allow users to upload files, you must ensure that the
|
||||
environment used to run Django is configured to work with non-ASCII file names.
|
||||
If your environment isn't configured correctly, you'll encounter
|
||||
``UnicodeEncodeError`` exceptions when saving files with file names that
|
||||
contain non-ASCII characters.
|
||||
``UnicodeEncodeError`` exceptions when saving files with file names or content
|
||||
that contains non-ASCII characters.
|
||||
|
||||
Filesystem support for UTF-8 file names varies and might depend on the
|
||||
environment. Check your current configuration in an interactive Python shell by
|
||||
@@ -306,7 +306,7 @@ This should output "UTF-8".
|
||||
The ``LANG`` environment variable is responsible for setting the expected
|
||||
encoding on Unix platforms. Consult the documentation for your operating system
|
||||
and application server for the appropriate syntax and location to set this
|
||||
variable.
|
||||
variable. See the :doc:`/howto/deployment/wsgi/modwsgi` for examples.
|
||||
|
||||
In your development environment, you might need to add a setting to your
|
||||
``~.bashrc`` analogous to:::
|
||||
|
||||
Reference in New Issue
Block a user