Klaus Schmidinger wrote:
[...] To me, a character is an entity that's always the same size (preferably one byte). UTF-8 breaks with this, so if you have a string that has, e.g. a strlen() of 10, you can't be sure that this will be really 10 printing characters because there might be some "escaped" characters.
Well, IIRC "dvb strings" can have embedded control characters so if you didn't just filter them out you'd have to deal with strlen != number of characters to render anyways.
cu Ludwig