My code was just an example, to illustrate what I was aiming at. It is not actually used. But I think you have a point Carsten > Why not just skip all the encoding uncertainity of strings and use an > array of byte/char? > > It'll probably be a lot faster too