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 an independent developer focusing on data and business layers, language constructs, parallelism and databases. Specifically Entity Framework, asynchronous and parallel programming, cloud and Azure. He's Microsoft Most Valuable Professional and you can read his articles, guides, tips and tricks at www.tabsoverspaces.com.