From: Andrew West (andrewcwest@gmail.com)
Date: Mon Jan 08 2007 - 10:19:50 CST
On 08/01/07, Andrew West <andrewcwest@gmail.com> wrote:
> On 08/01/07, Doug Ewell <dewell@adelphia.net> wrote:
> >
> > 2297277 decimal is 230DBD hex, so I don't yet see where <FEFF, E083,
> > DDBD> would come from.
> >
>
> The FEFF is a red herring. Firefox isn't the only application to do
> this. BabelPad converts both � and � to <U+E083,
> U+DDBD>, though I can't work out why.
>
The code converts 2297277 to UTF-16 with a check for ( ch > 0xFFFF ),
and as 2297277 is greater than 0xFFFF it tries to get a surrogate pair
from the number, and it ends up with <U+E083, U+DDBD>.
Andrew
This archive was generated by hypermail 2.1.5 : Thu Jan 18 2007 - 15:55:40 CST