Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3E0BA9F95AA for ; Tue, 21 Aug 2007 17:34:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27049-01 for ; Tue, 21 Aug 2007 17:34:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by postgresql.org (Postfix) with ESMTP id D9E519F9646 for ; Tue, 21 Aug 2007 17:33:59 -0300 (ADT) Received: from webmail.xs4all.nl (dovemail12.xs4all.nl [194.109.26.14]) by smtp-vbr1.xs4all.nl (8.13.8/8.13.8) with ESMTP id l7LKXsbc069308; Tue, 21 Aug 2007 22:33:54 +0200 (CEST) (envelope-from jtv@xs4all.nl) Received: from 125.24.242.1 (SquirrelMail authenticated user jtv) by webmail.xs4all.nl with HTTP; Wed, 22 Aug 2007 03:33:55 +0700 (ICT) Message-ID: <11923.125.24.242.1.1187728435.squirrel@webmail.xs4all.nl> In-Reply-To: <736324.21426.qm@web54606.mail.re2.yahoo.com> References: <736324.21426.qm@web54606.mail.re2.yahoo.com> Date: Wed, 22 Aug 2007 03:33:55 +0700 (ICT) Subject: Re: PQexecParams and wchar_t From: "Jeroen T. Vermeulen" To: "Rob" Cc: pgsql-interfaces@postgresql.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/8 X-Sequence-Number: 6602 On Wed, August 22, 2007 03:03, Rob wrote: > Does anyone have an example of passing a UTF8 wchar_t character string to > PQexecParams() working? For the life of me I can't get it to work. The > best I've gotten is the first character of the string is added to my > table. Why would you want to use wchar_t for UTF-8? And how? Jeroen