I ran in to some Problems when I try to do this:
public byte[] Login()
{
return Encoding.ASCII.GetBytes("WA\x01\x00\x00\x19\xf8\x05\x01\xa0\x8a\x84\xfc\x11iPhone-2.6.7-5222\x00\x08\xf8\x02\x96\xf8\x01\xf8\x01\x7e\x00\x07\xf8\x05\x0f\x5a\x2a\xbd\xa7");
}
these bytes \x8a\x84 get both encoded to \xbf\xbf what I do not want. I already tried with Default Encoding, UTF and Unicode, but they all do not provide what I need.
This is a socket client.