[Tutor] test if file is not ascii

Paul Tremblay phthenry at earthlink.net
Fri Oct 31 01:10:06 EST 2003


Is there any relatively fast, easy way to test if a file is not ascii?

I have written a script that converts RTF to XML. An RTF file should be
ascii encoded. If not, it will result in invalid XML.

It would be nice to test the file before the conversion begins to tell
the user "Sorry, but this file is not valid RTf."

Thanks

Paul

-- 

************************
*Paul Tremblay         *
*phthenry at earthlink.net*
************************



More information about the Tutor mailing list