Hello,
I have an application that uses TMF814 IDL and JacORB.
The application works fine until I tested to input using japanese characters.
The japanese characters seems to be garbled when it reaches the client.
Sample:
Client ---> server.getMessage();
Server
------
string getMessage()
{
return こんにちわ;
}
-----
Client Output: r?Lj
I searched the web for similar problems, their suggestion was to change the idl implementation from string to wstring. They said that its because java string is 2 bytes and idl string is 1 byte.
I tried to create a simple application to test their suggestion but the problem is I cannot change the idl because its a standard idl from TMF814. So i need a workaround so that the string can be viewed in the client with its current format preserved.
Can anyone help me on this?
There was also a similar post i found and the solution was to use ISO-8859-1 encoding and to convert the string from C++ string to idl string using UJTOSJ/
SJTOUJ. What is the equivalent function of UJTOSJ in Java?
Btw, my application is in Java and is using UTF-8 encoding.
Thanks,
Vergil
|