SQLite Forum

SQLiteDataReader.GetName() with UseUTF16Encoding option fails on Linux
Login
Hi,
I have a problem with SQLiteDataReader.GetName(index) method that returns the field name at the index passed by argument.
I use this nuget package: https://www.nuget.org/packages/System.Data.SQLite.Core/1.0.115

The problem is that the method executed in linux (I've tested on Ubuntu 20.04) or in a docker container (linux based) return a not well terminated string. (something like 'FieldName\0&%°*çç\0')

I wrote a sample c# netcore3.1 project that reproduce then bug as well:
https://github.com/alfonsocatanzaro/SQLite_UTF16Encoding.

Can you take a look at it?

I will wait for your feedback.

Best regards.

Alfonso.