On Wednesday, 22 February 2017 at 19:26:15 UTC, berni wrote: > herefore I'd like to make sure that the string the program read > is only made up of ascii characters. Easiest: foreach(char ch; postscript) if(ch > 127) throw new Exception("non-ascii detected");