[cx-oracle-users] Client encoding under Cygwin
Brought to you by:
atuining
From: Ian K. <ian...@gm...> - 2010-12-02 22:30:33
|
Using: Cygwin 2.721 under Windows XP SP3 Python 2.5.5 cx_Oracle 5.0.3 Oracle 10.2.0 I can't seem to change the client encoding used by cx_Oracle. I've tried this: $ export NLS_LANG=.UTF8 $ python Python 2.5.5 (r255:77872, Mar 15 2010, 00:43:13) [GCC 4.3.4 20090804 (release) 1] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ['NLS_LANG'] '.UTF8' >>> import cx_Oracle >>> conn = cx_Oracle.connect('ikelly/ikelly@xe') >>> conn.encoding, conn.nencoding ('WINDOWS-1252', 'WINDOWS-1252') I've also tried fiddling with the NLS_LANG registry setting, also to no effect. Any ideas? Thanks, Ian |