tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

Using national character sets with .NET Core (and FirebirdClient)

5 Oct 2017 1 mins .NET Core, .NET Standard, Firebird

If you want to use any national characters set (i.e. windows-1250) on .NET Core, thus also with FirebirdClient, you need to do some extra steps.

First you need to install System.Text.Encoding.CodePages package, but that’s not enough. You then need to call Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); before you plan to use new encodings. In case of FirebirdClient before using i.e. FbConnection (or related classes).

Without this your selection is limited (UTF-8, US-ASCII, UTF-16[BE] to name a few).

Profile Picture Jiří Činčura is .NET, C# and Firebird expert. He's focused on data and business layers, language constructs, parallelism, databases and performance. He's Microsoft Most Valuable Professional and frequent speaker. You can read his articles, guides and tips and tricks at