Mutilanguage problem
My demo is below :
Printer.ice
...
nonmutating string testMutiLang(string s);
...
PrinterI.cpp
string PrinterI::testMutiLang(const string & s, const Ice::Current&) const
{
cout << "receive " << s << endl;
string sRet;
sRet="Iam中文chinese" ; // middle part is represent chinese language in my real code
return sRet ;
....
the client code in c
string sRet = twoway->testMutiLang(sOut);
cout << "client get from server : " << sRet << endl;
when run I get the right output
the client in java
String sRet = twoway.testMutiLang(sOut);
System.out.println("client get from server ") ;
System.out.println(" 是不是中文 ") ;
System.out.println( sRet );
when run I get Iam????chinese
by the way I use linux slackware gcc 3.2.3 jdk 1.4.2
and if use java to output chinese , is right .
env set LC_ALL=zh_CN
how can I resolve this problem?
expect your help . thx.
FEB Son Of Mz
Husband Of Medea