From: Caio Chassot Date: 2009-12-14T22:53:17+09:00 Subject: Ruby 1.9 string slicing and StringScanner pointers Hi all, Earlier today I posted this question to Stack Overflow: http://stackoverflow.com/questions/1899999 Basically, it boils down to this: > I'm working with UTF-8 strings in Ruby 1.9. I need to get a slice using byte-based indexes, not char-based, because StringScanner's internal pointers are byte-based. While I welcome answers to that question here, I'm posting to ask something else: Should this be considered a bug in StringScanner? Wouldn't it make more sense for it to use character indexes? -- Posted via http://www.ruby-forum.com/.