From: killy971 Date: 2008-06-19T11:43:44+09:00 Subject: Detect non-ascii substrings in a file I have files encoded in Shift_JIS, that mainly contains JSP source code (ascii), but sometimes also contains strings that are non-ascii (japanese words). So, I would like to know if there is a way with ruby to : - detect files containing something else than ascii, - extract the non-ascii strings thare were found. Thank you !