ZF-3247: unicode problem on slideshare, and there is no 'count' available

Issue Type: Bug Created: 2008-05-12T17:05:38.000+0000 Last Updated: 2010-07-16T05:27:25.000+0000 Status: Closed Fix version(s): Reporter: Alif Rachmawadi (alifr) Assignee: Michelangelo van Dam (dragonbe) Tags: - Zend_Service_SlideShare

Related issues: Attachments:


below is sample from exception:

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 24: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xE9 0x65 0x20 0x70 in /home/alifr/public_html/framework/php/ZendFramework/1.5.1/library/Zend/Service/SlideShare.php on line 547

Warning: simplexml_load_string() [function.simplexml-load-string]: Presentation de Stephane Cheikh, modifiļæ½e par David Boisseleau in /home/alifr/public_html/framework/php/ZendFramework/1.5.1/library/Zend/Service/SlideShare.php on line 547

Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /home/alifr/public_html/framework/php/ZendFramework/1.5.1/library/Zend/Service/SlideShare.php on line 547

Fatal error: Call to a member function getName() on a non-object in /home/alifr/public_html/framework/php/ZendFramework/1.5.1/library/Zend/Service/SlideShare.php on line 549

then, i try to fix it:

changed line: $sxe = simplexml_load_string( $response->getBody());

to : $sxe = simplexml_load_string( iconv('ISO-8859-1', 'UTF-8',$response->getBody()));

and problem disappear.

and I add one line, from:

$retval = array();


$retval = array(); $retval['count'] = $sxe->count;

for now my problem fixed, but I hope in next release this bug will be officially fixed. thanks.


Posted by Michelangelo van Dam (dragonbe) on 2010-07-16T05:27:25.000+0000

no longer an issue (test added in r22571)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.