Java unicode byte parsing
问题 I'm just in the process of reading some data from a file as a stream of bytes, and I've just encountered some unicode strings that I'm not sure how best to handle. Each character is using two bytes, with only the first seeming to contain actual data, so for example the string 'trust' is stored in the file as: 0x74 0x00(t) 0x72 0x00(r) ...and so on Normally I'd just use a regex to replace the zeros with nothing and therefore remove the whitespace. However, the spaces between words within the