From: Martin Duerst Date: 2007-11-19T10:46:57+09:00 Subject: Re: Problems with \M-x in utf-8 encoded strings At 22:36 07/11/18, Kornelius Kalnbach wrote: >And each_char shouldn't throw an index error...no? It would be nice if each method that handles characters throws an error if there is an encoding problem. But this would make the C implementations much longer and potentially a lot slower. I think the right thing to do is to check encodings at crucial points (e.g. when transcoding), and throw an exception there (or do whatever requested if something else is requested). Regards, Martin. #-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University #-#-# http://www.sw.it.aoyama.ac.jp mailto:duerst@it.aoyama.ac.jp