Solved SQLB-2833: Wrong encoding in Gupta.SQLBase.Standard.dll when using with .NET core 3.0

Report SqlBase bugs and possible workarounds.
Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 586
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

SQLB-2833: Wrong encoding in Gupta.SQLBase.Standard.dll when using with .NET core 3.0

Post by Uwe van der Horst » 15 Oct 2019, 17:35

There is a encoding bug in Gupta.SQLBase.Standard.dll Version 12.2.0.12329. When using from a .NET CORE project, special characters (german umlaut) are destroyed when reading strings from the database. No problems with normal .NET project. The reason is that in .NET System.Text.Encoding.Default is iso-8859-1 and in .NET CORE 2.2 and 3.0 System.Text.Encoding.Default is UTF-8.

Test case attached. Create test database with the SQL file and then execute the .NET Core 3.0 project. You see console output with the error.
You do not have the required permissions to view the files attached to this post.
Best regards,
Uwe van der Horst
Advo-web GmbH

Return to “SqlBase Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 0 guests