[libxml-devel] problem with xmlNewCharEncodingHandler

Charlie Savage cfis at savagexi.com
Fri Jan 9 01:50: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?

Can you run the same test using just libxml itself?

Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://rubyforge.org/pipermail/libxml-devel/attachments/20090108/4fa87cd0/attachment.bin>


More information about the libxml-devel mailing list