PQgetvalue() question

Started by Nonameover 16 years ago2 messagesgeneral
Jump to latest
#1Noname
ayen.krida@gmail.com

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

#2Bruce Momjian
bruce@momjian.us
In reply to: Noname (#1)
Re: PQgetvalue() question

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. +