JiangWei
2006-07-28 12:43:49 UTC
server nativeCharCodeSet: UTF-8
client nativeCharCodeSet: UTF-8
str = ... # UTF-8 string
o = orb.string_to_object('corbaloc::..............')
object = o._narrow(...)
object.echo_string(str) #throw omniORB.CORBA.DATA_CONVERSION:
CORBA.DATA_CONVERSION(omniORB.DATA_CONVERSION_BadInput,CORBA.COMPLETED_NO)
object2 = orb.string_to_object('IOR:......................')
object2.echo_string(str) #OK
client nativeCharCodeSet: UTF-8
str = ... # UTF-8 string
o = orb.string_to_object('corbaloc::..............')
object = o._narrow(...)
object.echo_string(str) #throw omniORB.CORBA.DATA_CONVERSION:
CORBA.DATA_CONVERSION(omniORB.DATA_CONVERSION_BadInput,CORBA.COMPLETED_NO)
object2 = orb.string_to_object('IOR:......................')
object2.echo_string(str) #OK