~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to docs/ref/unicode.txt

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.3.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20100521075255-ii78v1dyfmyu3uzx
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
.. _ref-unicode:
2
2
 
3
 
======================
4
 
Unicode data in Django
5
 
======================
 
3
============
 
4
Unicode data
 
5
============
6
6
 
7
7
.. versionadded:: 1.0
8
8
 
21
21
a more restrictive encoding -- for example, latin1 (iso8859-1) -- you won't be
22
22
able to store certain characters in the database, and information will be lost.
23
23
 
24
 
 * MySQL users, refer to the `MySQL manual`_ (section 10.3.2 for MySQL 5.1) for
25
 
   details on how to set or alter the database character set encoding.
 
24
 * MySQL users, refer to the `MySQL manual`_ (section 9.1.3.2 for MySQL 5.1)
 
25
   for details on how to set or alter the database character set encoding.
26
26
 
27
27
 * PostgreSQL users, refer to the `PostgreSQL manual`_ (section 21.2.2 in
28
28
   PostgreSQL 8) for details on creating databases with the correct encoding.
30
30
 * SQLite users, there is nothing you need to do. SQLite always uses UTF-8
31
31
   for internal encoding.
32
32
 
33
 
.. _MySQL manual: http://www.mysql.org/doc/refman/5.1/en/charset-database.html
 
33
.. _MySQL manual: http://dev.mysql.com/doc/refman/5.1/en/charset-database.html
34
34
.. _PostgreSQL manual: http://www.postgresql.org/docs/8.2/static/multibyte.html#AEN24104
35
35
 
36
36
All of Django's database backends automatically convert Unicode strings into