The error information is as follows:
System.NotSupportedException:“No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.”
Solution:
Add system.Through.nuget.Text.Encoding and system.Text.Encoding.References to codepages
Then add the following code to the code
System.Text.EncodingProvider ppp = System.Text.CodePagesEncodingProvider.Instance;
Encoding.RegisterProvider(ppp);
OK solve the problem
Read More:
- [Solved] ORA-00020: maximum number of processes (150) exceeded
- [Solved] C# connecting to MySQL database reports an error
- Introduction to Relational Databases in SQL
- Linux Error: [ERROR] –initialize specified but the data directory has files in it. Aborting.
- [Solved] Anaconda Error: pyqt can’t use QSqlDatabase to connect to MySQL
- Elasticsearch imports MySQL data Error when executing the bin/logstash – f command
- [Solved] Canal Error: Could not find first log file name in binary log index file
- How to Fix MySQL error 1005: can’t create table (errno: 150)
- How To Change ASM SYS PASSWORD
- [Solved] Error while trying to retrieve text for error ORA-01019
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- Mongoose: How to delete all documents in collection
- Oracle Database AWR error: ORA-06502 [How to Solve]
- [Solved] Docker Desktop Start MongoDb Error: Error: spawn C:\Windows\system32\cmd.exe; ENOENT
- MySQL Error: [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file
- [Solved] Error response from daemon: driver failed programming external connectivity on endpoint mysql
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- [Solved] Running in 64 bit mode with the 32 bit Oracle client installed
- Mysql :error 1111. Invalid use of group function
- Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)