// rough way to decide if a character is likely printable. boolean printable = ' ' <= c && c <= '~' || '\u00a1'<= c && c <='\u024f';