Sending national symbols from Android to C# Windows through Socket -
there xml file, containing national symbols data. sms messages , bodies. use socket connection transfer xml file windows pc, c# code receives it. how pack , send data in such case..?
dataoutputstream outtoclient = outtoclient = new dataoutputstream (insock.getoutputstream ( )); outtoclient.writebytes(data2send); //<------data2send - string xml data containing unicode
in c# there no utf16, utf32 , utf8.. , on android there no utf32, , suppose national symbols in android coded in utf16, therefor collision. so, when do:
string xmldata = encoding.utf8.getstring(buffer);
then data utf8 range of symbols decoded right, national symbols left binary data, though before sending, on android side - can read them ok.
somebody told me base64 class.. before start try it, want ask if other way that?
Comments
Post a Comment