Please help - libpq API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Please help - libpq API

Hi all,

I have already posted my query regarding libpq functions and wide character support. Pls somebody help me. I am using libpq API functions in my C code to do operations on the database. But the problem I m facing is API functions like PQexec() etc....accept only char * .... but as part of localization, the queries I want to executed contain chinese characters which are multibytes. So the queries I want to execute are in wchar_t * format and PQ exec() accepts only char *. Is there any alternate way to execute queries having wide characters.

Even if somehow if I convert wchar_t *  to char * and provide it to Postgres, how will it differentiate between chinese characters and normal characters ??

Please help !!

Regs,
Pradeep



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux