Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Moderated Pro PHP
|
Moderated Pro PHP This is a moderated forum for discussing advanced, professional level issues with PHP. Your posts will not appear until a moderator approves them. Posts that are not the right level for this forum will be responded to and you'll be asked to post them in the [url="http://p2p.wrox.com/sql-server-2000-20/9"]Beginning PHP[/url] forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Moderated Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2010, 04:13 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default 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?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoding Will C# 2008 aka C# 3.0 0 January 11th, 2010 02:42 PM
issues with simplexml_load_string/SimpleXMLElement on PHP 5.1/Linux crmpicco PHP How-To 0 September 10th, 2009 12:33 PM
Error-Object does not support doesn't support this bootsy Classic ASP Basics 1 May 25th, 2008 07:14 PM
encoding paarupalli J2EE 0 March 2nd, 2007 04:14 AM
encoding alihussein3 Javascript How-To 1 October 28th, 2003 05:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.