Re: [cx-oracle-users] Using cx_Oracle 6.0rc1 on Windows
Brought to you by:
atuining
From: Walter D. <wa...@li...> - 2017-07-05 16:19:32
|
On 5 Jul 2017, at 16:21, Anthony Tuininga wrote: >> [...] >> "%1 ist keine zulõssige Win32-Anwendung" (which should read "%1 ist >> keine >> zulässige Win32-Anwendung", i.e. the "ö" should be an "ä") means >> "%1 is not >> an acceptable win32 application". >> >> So we don't see the real problem because cx_Oracle fails to create >> the >> proper Unicode string from the OS error message. >> >> It's not clear what encoding this is (probable latin-1 or cp1252, but >> definitely *not* UTF-8). A >> >> grep 'xe4.*LATIN SMALL LETTER A WITH DIAERESIS' Lib/encodings/*.py >> >> in the Python source code returns 40 encodings that map the byte 0xE4 >> to ä. >> >> If the correct encoding can't be determined from the environment it >> might >> be best to use a less strict error handling (like e.g. >> backslashreplace) >> when decoding the bytes of the error message. >> > > Thanks, Walter. This is very helpful. We'll have to see what makes the > most > sense in this case. Do you see information in the event log regarding > this > error? Where can we find this event log? > [...] Servus, Walter |