On Thu, Nov 04, 2004 at 08:55:03PM +0100, Per Hedbor () @ Pike (-) developers forum wrote:
Sorry, no, that's not correct. Pikestrings can be 16bit and invalid utf-16 at the same time.
But they can be valid, OTOH.
Unfortunately, there is no (native) way in Pike to tag a string as encoded in UTF-8, UTF-16 or in some charset. This is, in turn, the (true) reason for this discussion...
If there is String.width(), there should be String.encoding() too :)
But strings are not (real) objects in Pike, so...
Regards, /Al