diff --git a/Src/Microsoft.Database.Isam/ColumnDefinition.cs b/Src/Microsoft.Database.Isam/ColumnDefinition.cs index e54f6f8..f241921 100644 --- a/Src/Microsoft.Database.Isam/ColumnDefinition.cs +++ b/Src/Microsoft.Database.Isam/ColumnDefinition.cs @@ -285,7 +285,9 @@ namespace Microsoft.Database.Isam JET_SESID sesid = database.IsamSession.Sesid; // If we use the wide API (Vista+), then the temp table will be in UTF-16. - Encoding encodingOfTextColumns = EsentVersion.SupportsVistaFeatures + // Technically, this should have worked in Vista. But there was a bug, and + // it was fixed after Windows 7. + Encoding encodingOfTextColumns = EsentVersion.SupportsWindows8Features ? Encoding.Unicode : Encoding.ASCII;