On Saturday, 24 May 2014 at 18:18:37 UTC, John Colvin wrote: > if you use foreach(dchar c; s) you will get the iteration by > code-point you are looking for. Actually I was trying to prevent decoding :) It just occurred to me it can be tricky in generic code.