How to convert a Java String to an ASCII byte array?
String s = "ASCII Text"; byte[] bytes = s.getBytes("US-ASCII");