Oracle ODBC: Why are national characters changed to Latin equivalent in SELECT result -
i have oracle 11 database connect using both jdbc , odbc. jdbc works well, in odbc polish letters in select
result changed latin equivalent, example ą
-> a
, Ó
-> o
etc. tested application , simple python program uses odbc
module. same value database returned as:
zamoŚĆ - jdbc zamosc - odbc
my environment:
db server: oracle database 11g release 11.2.0.1.0 - 64bit production
client machine:
- windows server 2008 r2 64 bit
- oracle clients in 32 bit , 64 bit versions in:
c:\oracle\ora1120_32bit
,c:\oracle\ora1120_64bit
- odbc manager reports oracle driver version as: 11.02.00.01
i think locales set poland/polish, not visible set
command line utility.
anybody knows odbc or environment setting responsible translation of polish letters latin equivalents?
i suspect value of client character set not same in both cases. can check value of nls_lang setting:
- since on windows, should set in registry (probably hkey_local_machine -> software -> oracle -> your_home -> nls_lang)
- you've found doesn't solve problem, adding environment variable nls_lang did work !
Comments
Post a Comment