Is there any reason that the built-in format() command doesn't reproduce the non-printable characters in their printable forms: \001 and \002 ? inStr = "\001\002" outStr = format("%q", inStr) print(outStr) Thanks, Joshua Jensen