SimpleXMLElement does not support gb2312 encoding
I parse RSS document using SimpleXMLElement, and its simplicity fits my needs well. However I found SimpleXMLElement failed with document came in GB2312 encoding.
After some investigation, I found a workaround - I can preprocess the RSS document by simply a string replacing - replacing encoding="gb2312" with encoding="GB18030".
Has anyone experienced the same issue with SimpleXMLElement before?