Showing results for 
Search instead for 
Did you mean: 

SAP Net Connector and CodePage

Former Member
0 Kudos

I am using SAP .Net Connector (now it is 2.0) to get data from SAP into VB.Net and put them from VB into SAP. I got the problem:

the Russian texts are not transported correctly.

Though I set dest.Language = "RU", forming ConnectionString, the Russian string that look correctly in SAP have strange appearance in .Net and vice versa.

It seems that the Connector uses incorrect Code Page for Russian language.

When I debugged the code, I saw that

SAPProxy.Connection.OwnCodepage = "1500"


SAPProxy.Connection.PartnerCodepage = "1500"

May be, they should be equal to 1504?

Could anybody help me?

BTW, the same problem was with version 1.0 of SAP .Net Connector, but was not with SAP Connector and VB6.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You have found any solution for this problem?

Former Member
0 Kudos

Did you check the "CodepageEncoding" property for Connection?

Former Member
0 Kudos

try this

SAPProxy.RequestEncoding = System.Text.Encoding.GetEncoding(...);
SAPProxy.Connection.CodepageEncoding = System.Text.Encoding.GetEncoding(...);

You need to set ... as your language codepage. Such as in Turkish encoding this value is, "iso-8859-9". Your encoding should be in this format.

And add these

Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(...);
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture(...);	

And in this codepage in Turkish "tr-TR". You need to find Russian encoding as this format.

If this is helpful let me know.