pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connectivity error: Could not convert from the current locale to wide characters
8+ messages / 2 participants
[nested] [flat]

* Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-23 19:18  Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 8+ messages in thread

From: Andrus @ 2017-08-23 19:18 UTC (permalink / raw)
  To: pgsql-odbc

After installing latest odbc driver my application throws error

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

Application runs in Windows 10 in windows-1257 locale
Using unicode driver
Postgres 9.6
database encoding is unicode

How to fix this?
How to force earlier driver behaviour which worked OK ?

Andrus. 



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-23 22:11  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 8+ messages in thread

From: Inoue, Hiroshi @ 2017-08-23 22:11 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: pgsql-odbc

Hi Andrus,

On 2017/08/24 4:18, Andrus wrote:
> After installing latest odbc driver my application throws error
>
> Connectivity error: Could not convert from the current locale to wide 
> characters

Does *Connectivity error* mean an error on connection?
If so, could you send me the Mylog output of the failure?

regards,
Hiroshi Inoue

>
>
> Application runs in Windows 10 in windows-1257 locale
> Using unicode driver
> Postgres 9.6
> database encoding is unicode
>
> How to fix this?
> How to force earlier driver behaviour which worked OK ?
>
> Andrus



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-24 20:39  Andrus <kobruleht2@hot.ee>
  parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 8+ messages in thread

From: Andrus @ 2017-08-24 20:39 UTC (permalink / raw)
  To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-odbc

Hi,

> After installing latest odbc driver my application throws error
>
> Connectivity error: Could not convert from the current locale to wide 
> characters

>Does *Connectivity error* mean an error on connection?

If psqlodbc_09_00_0101.msi  driver is used, this error does not occur.

>If so, could you send me the Mylog output of the failure?

Logs are attached.
They doesnt contain error or communication information. They contain very 
few information.

Andrus.

>
>
> Application runs in Windows 10 in windows-1257 locale
> Using unicode driver
> Postgres 9.6
> database encoding is unicode
>
> How to fix this?
> How to force earlier driver behaviour which worked OK ?
>
> Andrus 

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

  logs.zip (application/x-zip-compressed, 2.1K) download

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-24 21:49  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 8+ messages in thread

From: Inoue, Hiroshi @ 2017-08-24 21:49 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: pgsql-odbc

Hi Andrus,

On 2017/08/25 5:39, Andrus wrote:
> Hi,
>
>> After installing latest odbc driver my application throws error
>>
>> Connectivity error: Could not convert from the current locale to wide 
>> characters
>
>> Does *Connectivity error* mean an error on connection?
>
> If psqlodbc_09_00_0101.msi  driver is used, this error does not occur.
>
>> If so, could you send me the Mylog output of the failure?
>
> Logs are attached.

Thanks.

> They doesnt contain error or communication information. They contain 
> very few information.

Could you turn on the Debug option in Advanced options (DataSource) page 
As well?

regards,
Hiroshi Inoue

>
> Andrus.
>
>>
>>
>> Application runs in Windows 10 in windows-1257 locale
>> Using unicode driver
>> Postgres 9.6
>> database encoding is unicode
>>
>> How to fix this?
>> How to force earlier driver behaviour which worked OK ?
>>
>> Andrus


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-25 07:05  Andrus <kobruleht2@hot.ee>
  parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 8+ messages in thread

From: Andrus @ 2017-08-25 07:05 UTC (permalink / raw)
  To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: pgsql-odbc

Hi,

Thank you.

>Could you turn on the Debug option in Advanced options (DataSource) page As 
>well?

I looked into all pages 1-3 ion advanced options.
There is no Debug option in any place in ODBC config.

Aslo in page 1 (screenshot attached) it looks like driver tries to write 
logs into root directory in c: drive.
In my knowldedge, this is disabled by default in newer windows OSes.
I can turn of Windows ODBC tracing and send this log if it helps.

Andrus.

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

advanced options.png (image/png, 39.2K) download view image
^ permalink raw reply [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-25 08:02  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 8+ messages in thread

From: Inoue, Hiroshi @ 2017-08-25 08:02 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: pgsql-odbc

Hi Andrus,

On 2017/08/25 16:05, Andrus wrote:
> Hi,
>
> Thank you.
>
>> Could you turn on the Debug option in Advanced options (DataSource) 
>> page As well?
>
> I looked into all pages 1-3 ion advanced options.
> There is no Debug option in any place in ODBC config.

Oops sorry, it is Mylog option. in page 1 which should be turned on.

>
> Aslo in page 1 (screenshot attached) it looks like driver tries to 
> write logs into root directory in c: drive.
> In my knowldedge, this is disabled by default in newer windows OSes.
> I can turn of Windows ODBC tracing and send this log if it helps.

Probably ODBC trace is useless in this case.
ISTM You sent me Mylog with global Mylog option is turned on.
Mylog output with per datasource Mylog option turned on is necessary.

regards,
Hiroshi Inoue


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-25 08:39  Andrus <kobruleht2@hot.ee>
  parent: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  0 siblings, 1 reply; 8+ messages in thread

From: Andrus @ 2017-08-25 08:39 UTC (permalink / raw)
  To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>; +Cc: 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. 



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: Connectivity error: Could not convert from the current locale to wide characters
@ 2017-08-25 10:07  Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 0 replies; 8+ messages in thread

From: Inoue, Hiroshi @ 2017-08-25 10:07 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: pgsql-odbc

Hi Andrus,

On 2017/08/25 17:39, Andrus wrote:
> 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

Please add Debug=1 so as to take Mylog.

regards,
Hiroshi Inoue

>
>
> Maybe log is not created due to this.
>
> Andrus.



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2017-08-25 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 19:18 Connectivity error: Could not convert from the current locale to wide characters Andrus <kobruleht2@hot.ee>
2017-08-23 22:11 ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-08-24 20:39   ` Andrus <kobruleht2@hot.ee>
2017-08-24 21:49     ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-08-25 07:05       ` Andrus <kobruleht2@hot.ee>
2017-08-25 08:02         ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
2017-08-25 08:39           ` Andrus <kobruleht2@hot.ee>
2017-08-25 10:07             ` Inoue, Hiroshi <h-inoue@dream.email.ne.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox