[Standards-JIG] Still not sure ...

Matthias Wimmer m at tthias.net
Thu Sep 9 08:08:34 UTC 2004

Hi list!

I am still not sure if it has been a good idea, that xmpp core 3.1
limits the length of the portions in a JID to 1023 B in UTF-8 encoding.
This might seem to be a good choice for programs using 8 bit character
types ... but it makes it hard to check if a JID is valid if you use
wide character types like wchar_t in modern C/C++ or the standard character
type of Java.
For most modern languages it seems to be easier to check the number of
characters in a string than the number of bytes in a corresponding UTF-8
byte sequence.

Tot kijk

Fon: +49-(0)70 0770 07770       http://web.amessage.info
HAM: DB1MW                      xmpp:mawis at amessage.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20040909/96df4df0/attachment.sig>

More information about the Standards mailing list