Initialize the char encoding support, it registers the default
encoding supported.
NOTE: while public, this function usually doesn't need to be called
in normal processing.
xmlCleanupCharEncodingHandlers ()
void xmlCleanupCharEncodingHandlers (void);
Cleanup the memory allocated for the char encoding support, it
unregisters all the encoding handlers.
Guess the encoding of the entity using the first bytes of the entity content
accordingly of the non-normative appendix F of the XML-1.0 recommendation.
in :
a pointer to the first bytes of the XML entity, must be at least
4 bytes long.
Conpare the string to the known encoding schemes already known. Note
that the comparison is case insensitive accordingly to the section
[XML] 4.3.3 Character Encoding in Entities.
name :
the encoding name as parsed, in UTF-8 format (ASCII actually)
Returns :
one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE
if not recognized.