cannot send MicroSoft Word specific characters to CORBA Server
s Joshi
Greenhorn
Joined: Sep 26, 2005
Posts: 12
posted
0
hello,
I am sending a String to CORBA Server. This String contains MicroSoft Word Specific chacters like this quotes �this is a test�. The CORBA Server gives me this exception
Corba error : org.omg.CORBA.DATA_CONVERSION vmcid: OMG minor coe: 1 completed: NO
I want to retain this character. Is there any way I can get rid of this CORBA exception?
Thanks.
Lin Shen
Ranch Hand
Joined: Oct 08, 2003
Posts: 57
posted
0
did you define the file you are going to send in your IDL file as type string?
You need to use wstring or send your file as a sequence of bytes (octet).
recommended to read/write your file as array of bytes in Java (sequence<octet> in CORBA).