Send Japanese characters stored into a String to a byte array (with split)

edited May 2016 in How To...

Hi ! I have to use Japanese characters in my program, and send them via a COM port...I tried debugging to check the value of my String, and the Japanese character is inside, but the problem is when I convert to a string of bytes to port.write() it (using data=String.getBytes() ) ,when it comes to the Japanese character it transforms it in a "?"...is there a way to make getBytes() (or any other function of the same type) split this one japanese character in the multiple bytes needed ? Thx forward

Answers

Sign In or Register to comment.