Android Java String operations not working -
I have a problem that not all string operations work:
string received_my age = new String (lmessage, 0, packet.getLength ());
Note: received_mess is "start.hello.end"
if (received_message.start ("start") & amp; Received Message (".end")) {Results = 1; } Received _message = receive_message. Location ("start", ""); Received_message = receive_message Location ("end", ""); Result: Result is 0, received_message still "start.hello.end"
-
But it is working correctly:
if received (with "sign_arsh star" ("s") & amp; amp; amp; amp; amp; message. ")) {Results = 1; } Received _message = receive_message. Location ("s", ""); Received_reference = received_message place (".", "");
If I do this work with a single character then it's just working.
How can I work it out for whole strings?
The problem was encoding the Windows server used Unicode, the Android system was used as a UTF-16 standard Done Therefore there are some invisible characters in the string.
Comments
Post a Comment