[odb-users] Re: ODB

Boris Kolpackov boris at codesynthesis.com
Thu May 10 12:14:10 EDT 2012


Hi Gennadiy,

In the future please send technical questions like this to the odb-users
mailing list (CC'ed). See the posting guidelines for details:

http://www.codesynthesis.com/support/posting-guidelines.xhtml


Pochtar, Gennadiy (FIT) <itpochg at freudenberg.de> writes:

> does your ODB software supports UNICODE charset, i.e. is there a way
> to use UNICODE chars in ODB queries?

Yes, UNICODE is supported though specifics depend on the database that
you are using. For example, with MS SQL Server you can do:

std::wstring name (L"John");

result r = db->query<person> (query::first_name == name);

With other databases (e.g., Oracle) you can pass UTF-8-encoded std::string.
Which database are you using?

Boris



More information about the odb-users mailing list