https://bugs.documentfoundation.org/show_bug.cgi?id=131238

--- Comment #19 from Mike Kaganski <[email protected]> ---
I took a look at the sample you provided. The 'comments' database reports UTF-8
encoding, seen using this SQL directly:

 PRAGMA encoding;

And if the connection is configured to use UTF-8 - as you indicated in
attachment 158510 - then LibreOffice will use that encoding in its calls. It
definitely happens, e.g., in OStatement_Base::execute [1].

The question is: is this correct? I fail to find a definite statement on what
encoding the SQLCHAR arguments are expected to use. I found a random answer on
StackOverflow [2], which seems to indicate that yes, the encoding should be
"system", not the one from the database. But still, that's not an authoritative
answer. If it's true, then indeed we have a bug. If not, then we can avoid
excessive complexity.

By the way: it's an impressive job that you did here!

[1]
https://opengrok.libreoffice.org/xref/core/connectivity/source/drivers/odbc/OStatement.cxx?r=4d97239b#311
[2] https://stackoverflow.com/a/6587447/1397376

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to