I need to add some non printable chars to a string in java so it can be sent down a tcp pipe. the chars mean something to the protocol I am using (record separator and end o
If you wish, you can write these as Unicode literals (in chars or Strings):
final String endOfText = "\u0003";
I am assuming that you don't literally want ASCII for a byte-based protocol (the chars are still 16 bits).