Le 10/07/2012 08:02, dhruvbird a écrit :
What do you mean by "ANSI parser"?

ANSI = 1 byte/character
Unicode in Js = 2 byte/character (UCS2)
It is an ANSI parser because it can parse inputs from a Buffer that is an array of bytes.
Most of times XML is encoded in UTF8.
UTF8 is a special ANSI code page where all unicode characters can be encoded. In UTF8 characters can be encoded on one or more bytes.

If you want to decode a xml document by chunks, you can cut a character, if the partial chunk is decoded from UTF8 to Unicode to be parsed by node-xml there will be a character lost, ouch!

This can't happen with an ANSI parser.

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to