[jdev] BOM

Waqas Hussain waqas20 at gmail.com
Thu Nov 6 12:59:17 CST 2008


On Thu, Nov 6, 2008 at 4:00 PM, Jonathan Dickinson
<jonathan.dickinson at k2.com> wrote:
> Hi All,
>
>
>
> What's the official stance on BOM (Byte order marks)? I have had to
> specifically remove them because most client (e.g. Cocinnella) sporadically
> break if they are there (strangely, first time you try to log in, after that
> it's fine).
>
>
>
> The client says unexpected char "[]" (where the block is an 'unprintable'),
> so I assume it's the BOM.
>
>
>
> -- Jonathan
>
> _______________________________________________
> JDev mailing list
> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
>
>

While RFC 3920 [XMPP] doesn't say anything about byte order marks, RFC
3629 [UTF-8] does suggest:

   o  A protocol SHOULD forbid use of U+FEFF as a signature for those
      textual protocol elements that the protocol mandates to be always
      UTF-8, the signature function being totally useless in those
      cases.

I don't think the use of the byte order marks in an XMPP stream was
ever intended by the protocol designers. This looks like an oversight
and should be explicitly specified in the XMPP RFC.

--
Waqas Hussain



More information about the JDev mailing list