on 2004 Oct 14 12:19 PM
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"
and
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.
You have found any solution for this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.