powered by Jive Software

STD3 ASCII rules?

I’‘m getting an exception when I’'m adding a JID with a “_” in it. The exception is

Caused by: org.jivesoftware.stringprep.IDNAException: Contains non-LDH characters.

Is there any way to handle the names? This is in context to a gateway so the names are coming from Yahoo where underscores are allowed.

Thanks

Noah

Hey Noah,

This is a good question. Reading url=http://www.jabber.org/jeps/jep-0100.html#addressingthis part[/url] of the JEP I see that for some invalid characters you may use JID escaping. In Whack you will find support for JID escaping. Look at JID#escapeNode(String). The other option mentioned by the JEP is “Use the older ‘‘jabber:iq:gateway’’ protocol”. Since this is a gateway specific question you may also want to make the question on jdev (XMPP forums) or even on other gateways forums.

Regards,

– Gato