.NET Core: text encoding problem

.NET Core: text encoding problem

Postby powelerl » Thu 16 Nov 2017 11:32

Hi, this is a headsup. A problem and its solution.

When using .NET Core I got this exception message:

No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

Posts: 31
Joined: Thu 22 Dec 2016 10:00

Re: .NET Core: text encoding problem

Postby Shalex » Mon 20 Nov 2017 14:05

1. You are getting this error with a provider-specific code, aren't you? Specify code snippet for reproducing.

2. Tell us your connection string (roughly, without credentials).

3. Your encoding settings:
a) NLS_LANGUAGE, NLS_CHARACTERSET, and NLS_NCHAR_CHARACTERSET parameters of your Oracle server
b) regional settings of your operating system: Control Panel > Reginal and Language Options > the "Standards and formats" drop-down value, Location, and Language for non-Unicode programs
c) NLS_LANG setting of your Oracle client (in registry) if used
Devart Team
Posts: 7841
Joined: Thu 14 Aug 2008 12:44

Return to dotConnect for Oracle