Re: PORT_UCS2_UTF8Conversion and NS_ConvertUTF8toUTF16

Nelson Bolyard <[email protected]> Tue, 03 May 2005 00:18:10 -0700
Newsgroups gmane.comp.mozilla.internationalization
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Jean-Marc Desperrier wrote:
> I wonder if it's correctly documented somewhere that 
> PORT_UCS2_UTF8Conversion in NSS means UCS2 Little Endian, while the UCS2 
> based types in the Mozilla context have a platform dependent byte order.

No, that wouldn't be correctly documented anywhere.
The UCS2 side of PORT_UCS2_UTF8Conversion always consumes/produces
Big Endian UCS2.  This is because all UCS2 as used in certificates is
always big endian.