Re: Connectivity error: Could not convert from the current locale to wide characters

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
Cc: <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Connectivity error: Could not convert from the current locale to wide characters
Date: 2017-08-25 08:39:58
Message-ID: 1A01C06069F84F4DAB3826E74E14D180@dell2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

> Oops sorry, it is Mylog option. in page 1 which should be turned on.
>Probably ODBC trace is useless in this case.

It contains error mentioned message

Could not convert from the current locale to wide characters

Maybe come character in data causes this and it may be visible in this log.

>ISTM You sent me Mylog with global Mylog option is turned on.
>Mylog output with per datasource Mylog option turned on is necessary.

Mylog was turned on in datasource page also.

I tried again. Turned mylog on only in datasource page, disabled UAC in
windows 10 and run application with administrative rights.
After that searched for mylog*.log files in C: drive.
Those files are not created.

My application does not use named datasource. It uses direct connection
string

DRIVER={PostgreSQL
Unicode};DATABASE=somedb;SERVER=localhost;PORT=5432;UID=postgres;Protocol=-0;B9=0;C7=0

Maybe log is not created due to this.

Andrus.

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Inoue, Hiroshi 2017-08-25 10:07:39 Re: Connectivity error: Could not convert from the current locale to wide characters
Previous Message Inoue, Hiroshi 2017-08-25 08:23:43 Re: A POSSIBLE BUG: The ODBC standard procedure call ("{ CALL function(param) }") is disallowed in ReadOnly ODBC mode whereas "SELECT * FROM function(param)" is let through.