On Fri, Nov 27, 2015 at 2:16 PM, Dan Kennedy <danielk1977 at gmail.com> wrote:
> On 11/27/2015 12:13 PM, Igor Korot wrote: > >> Hi, >> Is there any way to have "sqlite3_errmsg" function return a wide char >> string? >> Or do a conversion in a portable way? >> > > Will sqlite3_errmsg16() work for you? > > https://www.sqlite.org/c3ref/errcode.html That's UTF-16, while a wstring is expected to be in the current locale (which won't be UTF-16 on Windows). Furthermore, wstring can be 2-byte or 4-byte per char / rune / codepoint, depending on OS, whilieSQLite's "*16" APIs are uint16_t based I suppose (can't say for sure, since void*) --DD