[odb-users] charset in odb

Boris Kolpackov boris at codesynthesis.com
Mon Jun 3 09:26:49 EDT 2019


Cheng Wu <sandisks555 at gmail.com> writes:

> Can I set charset to utf8 while using odb to generate cpp code?

While I don't understand what exactly you want to achieve here, the
values that you send in, say, INSERT statement are not hard-coded in
the generated code. Rather, they are taken from, say, std::string
data member in your class. And it is your responsibility to make
sure that the encoding of such a string and the way your database
is created and/or opened are compatible.



More information about the odb-users mailing list