LCM communication module, lightweight communications and marshalling, Chinese coding problem

CSDN Q & A 2022-01-15 02:25:21

Cross host communication should use LCM Communication mode , Run into some problems .
1、 Can you set the encoding method of the string , At present, Chinese is garbled , I saw lcm-gen Generated data structure , Encoding strings is just
str.getChars(0, this.pickTitle.length(), __strbuf, 0) (java Code ). In this way, you just copy the characters to One char[] in , How to deal with Chinese ?

2、 Look at source support 4 Medium communication mode ,udp multicast ,tcp,file,memq. But there are no specific examples . Because the development environment needs to communicate across systems ( Different virtual machines , On the same host ) Unable to connect to the same routing segment , Can we pass file Means of communication ?


thank
Similar articles

2022-01-15

2022-01-15

2022-01-15