Thanks Todd for the NICE transplant for expat.
I have 2 questions here:

1, how to use parameter "aEncoding"? I use
_LIT16(KISO8859, "ISO-8859-1");
parser->Parse(bufferptr, ETrue);

then NO output, but if i remark line 2, everything is OK.

2, How ParseBuffer() be used? I searched a lot but I can't find any example.
Can anybody supply one?

3, (Optional) How to implant a new encoding type, such as "GB2312" for simplified Chinese? any instructions?