I want to send an email with 9 specific bytes in the body:
byte one = (byte) 161;
byte two = (byte) 1;
byte three = (byte) 254;
byte four = (byte) 1;
byte five = (byte) 255;
byte six = (byte) 255;
byte seven = (byte) 255;
byte eight = (byte) 254;
byte nein = (byte) 255;
String unicode = new String(new byte[] { one, two, three, four, five, six, seven, eight, nein }, "windows-1258");
emailMessage.setText(unicode);
Everytime I send these bytes another 9 bytes reach the destination. How can I achieve this?
Receiver's string enconding doesn't matter to me. I'm not interested in how the characters display visually. I'm more concerned in the information, the hex value in the character.