.NET Core: text encoding problem

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
powelerl
Posts: 31
Joined: Thu 22 Dec 2016 10:00

.NET Core: text encoding problem

Post by 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.
https://stackoverflow.com/questions/378 ... how-to-fix

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: .NET Core: text encoding problem

Post by 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

Post Reply