on 01-03-2005 8:52 AM
We tried to use .Net Connector 2.0 to retrieve chinese values from SAP 46c, configured to be able to store Chinese characters (as well as HKSCS).
We have no problem in using SAP JCo 2.1 to save/retrieve chinese values.
However, we get gabbage when we want to retrieve Chinese values using .Net connector 2.0.
Is there any special handlings of the retrieved data or any set up required to save/retrieve chinese values?
Regards,
Devin
Are you using ASP.NET to display the data? If so, you probably need to save the page in which you try to display the values with the right chinese encoding for the characters to show up right.
Regards,
Ofer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'm using ASP.NET. The page's contentType is set to "text/html; charset=UTF-8" and when it is viewed under IE, the encoding UTF-8 is selected. However, we have no luck on this.
The chinese characters should be displayed correctly under UTF-8 encoding, as this is in the case when we use JCo.
Any other idea?
Settings in R3:
Code page: 8340
Country code: HK
We are using JCo 2.1 which supports the code page 8340. We have no problem in retreiving and saving Chinese characters to/from R3 using JCo.
What code pages are supported by NCo. Where can I find more information about i18n using NCo?
Does NCo support code page 8340?
I've got the patch finally. Thanks Guangwei.
However, it still doesn't work after I replaced the new dll in the folder "C:\Program Files\SAP\SAP .NET Connector 2.0".
My code looks like this:
SAPProxy proxy = new SAPProxy();
proxy.Connection = Connection.GetConnection(aDestination.ConnectionString);
SAPConnection conn = (SAPConnection)proxy.Connection;
conn.OwnCodepage = "8344";
// have tried "8340" or not set, same result
try
{
proxy.aBAPI(...);
// This should return chinese characters, but I've no luck on this...
TextBox1.Text = aReturnValueWithChineseCharacters;
}
catch (SAP.Connector.BapiException ex)
{
Console.WriteLine("Exception caught: {0}", ex);
}
Any more advice? Have I done something wrong?
Hi Devin,
I am working as .net developer.
I know that this is very old thread, still i am looking forward to solve my issue.
I am having issue with accepting Chinese character while calling BAPI.
Where can I download this patch, and please tell me how can I proceed with this patch.
Please share if you have any work around this issue.
Thanks,
Vijesh
Hello Vijesh,
the latest patch for NCo 2.0 is still available from https://service.sap.com/connectors -> SAP Connector for Microsoft .NET inthe download section of 2.0.
However, I strongly recommend to migrate your application to a NCo 3.0 based one, as NCo 2.0 is out of support since March 31.
Best regards,
Markus
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.