On Wednesday October 10 2007, Hagit Yidov wrote:
Hi
I was wondering if anyone ran into a problem of JID-case-sensitivity.
According to XEP-0029 JID is case sensitive.
We are working with 'Openfire', and some where along the line
The JID changes to lowercase.
Does anyone know anything about this issue?
Hi,
A JID is not strictly case-sensitive. Only the resource part of a JID is. Both
node and domain part are not. However, just converting to lower-case doesn't
help, various stringprep profiles are supposed to be applied to the JID parts
before you can safely compare them. If you use gloox' JID class *and* have
libidn support compiled in, this is taken care of automatically.
BTW, I'm not sure XEP-0029 -- being deprecated -- is the best resource for any
info on that topic. Better check RFC3920 directly.
cheers,
Jakob