[Libpqxx-general] wide strings

Jeroen Vermeulen jtv at xs4all.nl
Sat Sep 26 11:07:37 UTC 2009


Caleb Cushing wrote:
> can libpqxx not handle std::wstring? what's the best way to preserve encoding?

I haven't tried this yet myself, though Kirit may have some experience 
using UTF-16.  For now libpqxx is mostly encoding-unaware, passing 
strings to the underlying libpq.  So the way to do this should be to 
provide C-style const char pointers.


Jeroen


More information about the Libpqxx-general mailing list