[libxml-devel] problem with xmlNewCharEncodingHandler

vincent.jiang Vincent.Jiang.Sep at gmail.com
Fri Jan 9 01:02:28 EST 2009


I want to extern libxml encoding to GB2312 on linux.
I found it that %outlen is just 45 and %inlen is 653 passed by
xmlCharEncodingInputFunc(unsigned char * out, int * outlen, const
unsigned char * in, int * inlen)
 when I use iconv to convert GB2312 to UTF-8.
And iconv returned -1.
Is %outlen should larger than %inlen?
How should I do?


More information about the libxml-devel mailing list