I am using linq2db.postgresql to select data from a table the table includes some unicode in the description field.
var dataContext = LinqToDB.DataProvider.PostgreSQL.PostgreSQLTools.CreateDataConnection(_ConnectionString, PostgreSQLVersion.v93);
var results = from p in dataContext.GetTable<Part>()
select p;
return results.ToList();
This throws an exception: 22021: invalid byte sequence for encoding "UTF8": 0xa3
Unfortunately the data is not mine and is what it is, and I need to select it out into a sql database.
Any ideas how to get around this? Or if I could configure linq2db to work with this that would be great and help welcome.