1. Penta consulting
  2. SnapDevelop
  3. Wednesday, 30 November 2022 05:20 AM UTC

We use ASE16 for PowerServer2022 and DB. After publishing through SnapDevelop, the following error occurs when you log in by running the service.
----------------------------------------------------
The login process could not proceed due to a database error.

No data is available to encode 1252. For information on defining custom encoding, see the Encoding documentation.Registers the provider method.
----------------------------------------------------

I also downloaded the System.text.encoding.codePages package via nuget and added Encoding.RegisterProvider(CodePagesEncodingProvider.Instance) to the public voidConfigureServices(ISServiceCollectionServices) method on startup.cs.

What's the problem?

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 December 2022 09:37 AM UTC
  2. SnapDevelop
  3. # 1

Hi Penta,

Please go to ODBC DataSources (64-bit), select Your ASE DataSource, click Configure, turn to Advanced Tab, and check the "Client Charset" and "Communication Charset". Modify the Client Charset to cp1252 and start your application again.

Regards, Logan

 

Comment
There are no comments made yet.
Penta consulting Accepted Answer Pending Moderation
  1. Friday, 2 December 2022 00:48 AM UTC
  2. SnapDevelop
  3. # 2

Thank you for your answer.

Currently, I use the service by making it a container through a docker Therefore, I think we need to modify the odbc.ini

Current odbc.ini Adding charset=eucksc to fails to get data from DB. If you remove charset, you will get data with broken Korean.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.