Can you tell me how to convert gb2312 to utf8 in encoding.h .Because xpath is in utf8 .I don't know how to use the function .Thank you ______________________________________ ===================================================================