I'm having to convert an AFP (mainframe) file to a PDF document. I can do all that just fine, but there are plenty of garbage characters sprinkled throughout the file that I want to get rid of. I want a method that removes all invalid characters. The only characters I want is all the alphanumerics, cr & lf, and the normal keyboard characters. I know how to do this painstakingly, but I bet one of you guys already code to do this. The method should only ALLOW characters from an approved list. Unless there's a better way, of course.