Thread: PQgetvalue() question

PQgetvalue() question

From
ayen.krida@gmail.com
Date:
Hi friends,
Can anyone help me with this?

In what encoding the function PQgetvalue() return?
ASCII? UTF8?

Thank you very very much.

Rgds,
Ayen Yang
Sent from my AXIS Worry Free BlackBerry® smartphone

Re: PQgetvalue() question

From
Bruce Momjian
Date:
> Can anyone help me with this?
>
> In what encoding the function PQgetvalue() return?
> ASCII? UTF8?

It returns in whatever client encoding you are using:

    test=> SHOW client_encoding;
     client_encoding
    -----------------
     SQL_ASCII
    (1 row)

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +