VB.Net String and Java String
Hello,
I am usually working on VB.Net (actually I am a newbie and I am amateur). But now I have to develop an android side client with java (where I am newbie as well). The problem I am facing now is , that 2 string types between those languages are different. .Net string has a size of 10 bytes + 2*<string length> and java string type is only a byte array. The problem is that this data is being sent over network. If I use both client and server written in .net it is easy:
yes Code:
reader.ReadString
writer.WriteString
But if I use java client I don't know exactly how to retrieve .net string and convert to java string. The problem is data length which I believe is hidden in the header, so that reader.ReadString can know how many bytes to read. Well I can't find any useful resource how to convert the strings so that 2 softwares can communicate correctly. Some symbols are holding more space like "€".
Do you know a good info-resource where I can find how string really delivered and read in .net? Can simply use Reader.readLine in java? (I know last question doesn't belong there)