Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot connect to SAP server with unicode(Non ASCII) text

Former Member
0 Kudos

Hi ,

We have SAP server 7.0 BASIS with unicode support.

Chinese,Korean language is installed on it.

when we try to connect using SAP Unicode RFC SDK 32bit windows

Scenario 1)

string connect="TYPE=3 TRACE=1 CLIENT=100 USER=mcaisuca PASSWD=bmcsoftw LANG=ENG ASHOST=idm-sap-700 SYSNR=05";

wstring wconnect= FromUtf8(connect);

rfc_handle = RfcOpenEx ((rfc_char_t*)wconnect.c_str(), &error_info);

This works fine

Scenario 2)

string connect="TYPE=3 TRACE=1 CLIENT=100 USER=u0395u03BBu03BBu03B7u03BDu03B9u03BAά PASSWD=bmcsoftw LANG=ENG ASHOST=idm-sap-700 SYSNR=05";

wstring wconnect= FromUtf8(connect);

rfc_handle = RfcOpenEx ((rfc_char_t*)wconnect.c_str(), &error_info);

This does not conenct.

The function FromUtf8 works perfectly fine.

IS any special handling required if we are sending non ascii data

best regards

Manoj

1 REPLY 1

markus_doehr2
Active Contributor
0 Kudos

> string connect="TYPE=3 TRACE=1 CLIENT=100 USER=u0395u03BBu03BBu03B7u03BDu03B9u03BAά PASSWD=bmcsoftw LANG=ENG ASHOST=idm-sap-700 SYSNR=05";

> wstring wconnect= FromUtf8(connect);

> rfc_handle = RfcOpenEx ((rfc_char_t*)wconnect.c_str(), &error_info);

>

> This does not conenct.

Not connect or not log on?

Markus