Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed an issue with unicode being mangled in Oracle when the …

…database character set is non-unicode. Backport of r10175 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cdbc225e0bf5e5d08b42ce8abe0e1f78f1d635b5 1 parent 2e05920
Ian Kelly authored March 27, 2009

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  django/db/backends/oracle/base.py
4  django/db/backends/oracle/base.py
@@ -14,6 +14,10 @@
14 14
 
15 15
 # Oracle takes client-side character set encoding from the environment.
16 16
 os.environ['NLS_LANG'] = '.UTF8'
  17
+# This prevents unicode from getting mangled by getting encoded into the
  18
+# potentially non-unicode database character set.
  19
+os.environ['ORA_NCHAR_LITERAL_REPLACE'] = 'TRUE'
  20
+
17 21
 try:
18 22
     import cx_Oracle as Database
19 23
 except ImportError, e:

0 notes on commit cdbc225

Please sign in to comment.
Something went wrong with that request. Please try again.