SimpleXMLElement and gb2312 or big5

From: Date: Fri, 02 Apr 2010 14:48:55 +0000
Subject: SimpleXMLElement and gb2312 or big5
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-303753@lists.php.net to get a copy of this message
I use the following code to get rss and parse it, but the code occasionally have issues with gb2312 or big-5 encoded feeds, and fails to parse them. However other times may appear just okay. Any thoughts? Maybe SimpleXMLElement is simply not meant for other language encodings... $page = file_get_contents($rss); try { $feed = new SimpleXMLElement($page);

« previous php.general (#303753) next »