Home

Sqlite driver behavior with byte array, utf8 encoding

In Visual Studio, using C#, I converted a string of text to a byte[] using System.Text.Encoding.UTF8.GetBytes(str). I stored that byte[] in a sqlite database. I can retrieve the data in C#, visual studio, decode it back to a string, and read it. When I open that database in Linqpad, however, and query the data, the byte array that comes back is larger, and decoding it brings back an illegible string.

Thoughs?
Sign In or Register to comment.