[jdev] Case sensitivity in JIDs

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Wed Dec 10 16:05:08 CST 2008

On Wednesday 10 December 2008 12:36:47 Arne Claassen wrote:
> Hmmm... then stringprep in agsXMPP might be borked, since in it user
> names stay in the case they were sent, which is where my troubles
> started.

When you stringprep a value, you learn two things:
  1) whether or not the value is valid
  2) the normalized/canonical form of the value

Technically, you should only need to involve the normalized form of a value 
when doing comparisons or using it as input to hash functions.  In other 
situations, such as display or transmission, it is fine to retain case as 
long as the value is valid.


More information about the JDev mailing list