2

My android application receive binary data as UDP packet , how should I convert that in android to ASCII ?

Aida E
  • 1,108
  • 2
  • 22
  • 40

1 Answers1

4

Try the following:

byte [] data = (however you extract data from your source);
String result = new String(data, "iso-8859-1");
Xenon
  • 3,174
  • 18
  • 37
Jules
  • 14,841
  • 9
  • 83
  • 130