Page 1 of 1

.NET Core: text encoding problem

Posted: Thu 16 Nov 2017 11:32
by powelerl
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.
https://stackoverflow.com/questions/378 ... how-to-fix

Re: .NET Core: text encoding problem

Posted: Mon 20 Nov 2017 14:05
by Shalex
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