On Thu, Dec 2, 2010 at 3:23 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > Weird. From what I can tell, this seems to have something to do with > Cygwin, or at least I'm able to replicate it in that environment. > Setting NLS_LANG in or out of process and changing the registry key > all have no effect.
The actual problem is described here: http://rubyforge.org/forum/forum.php?thread_id=6826&forum_id=1078 and from the cx-oracle-users mailing list comes this suggestion: >>> import ctypes >>> ctypes.CDLL('kernel32').SetEnvironmentVariableA('NLS_LANG', '.UTF8') I've tried it, and it works. I suggest patching the above into your django/db/backends/oracle/base.py file, in place of the line: os.environ['NLS_LANG'] = '.UTF8' Cheers, Ian -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.