From: James Edward Gray II Date: 2009-12-15T02:07:12+09:00 Subject: Re: Ruby 1.9 string slicing and StringScanner pointers On Dec 14, 2009, at 10:55 AM, Robert Klemme wrote: > Btw, although UTF-16 is a fixed length encoding, UTF-16 is not a fixed length encoding. A UTF-16 character may be encoded in two or four bytes. I believe UTF-32 is fixed length, but even then it would not be cheap to index due to Unicode's use of "combining characters." With them multiple codepoints may represent a single index. James Edward Gray II