>>> If I later try to use it on strings of type UTF-8, it can throw an >>> exception. > I'm not clear what you mean by an example other than what I put in the > original note. Do you have a small example (like your original) that throws an exception where you "use it on strings later of type UTF-8" and it throws an exception? -r -- Posted via http://www.ruby-forum.com/.