| From: | "Christopher Bland" <themanatuf(at)juno(dot)com> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Inserting & Retrieving Unicode with libpq |
| Date: | 2006-09-26 19:12:37 |
| Message-ID: | 20060926.121336.8480.655657@webmail35.nyc.untd.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
I've been trying to figure out all day how to insert and retrieve
unicode data from my table? My database is defined as:
List of databases
Name | Owner | Encoding
-----------+----------+-----------
mydata | postgres | UTF8
The exported methods from libpq either accept char* as the input or
return char*. I would like to be able to pass in wchar_t* and return
wchar_t* parameters. Is this possible with the current libpq module?
I've tried using the 'wcstombs' function to convert wide chars to
multi-byte, but that hasn't been working for me (all of my data is wide
chars).
Any help or suggestions would be much apprecaited.
________________________________________________________________________
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 1GB of Email Storage.
Visit http://www.juno.com/value to sign up today!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-09-26 19:51:51 | Re: Inserting & Retrieving Unicode with libpq |
| Previous Message | Michael Fuhr | 2006-09-26 14:35:30 | Re: pass date type data to PQexecparams |