Re: How to insert wchar_t type string to PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yan Cheng CHEOK <yccheok(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to insert wchar_t type string to PostgreSQL
Date: 2010-05-20 13:34:57
Message-ID: 3097.1274362497@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yan Cheng CHEOK <yccheok(at)yahoo(dot)com> writes:
> May I know, how I can store wchar_t * typed string into PostgreSQl, using C library?

You can't; you have to convert to whatever the client_encoding is.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-05-20 13:38:34 Re: Connection lost
Previous Message Hernan Danielan 2010-05-20 12:49:23 Re: Connection lost