Daniel DeLorme wrote: > Austin Ziegler wrote: >> No. #index always returns character position; it just so happens that >> some encodings use bytes for their character position. > > That's just a different way of wording my concern :-P > You'll still have inconsistencies if you forgot to set the proper > encoding for one of your strings. THAT is my (admittedly tiny) concern. But that would be a bug in your code; if you don't encode a string, you can't expect character positions to be meaningful for any encoding other than one that just uses byte-sized characters. - Charlie