Zend_Feed import problem

View: New views
3 Messages — Rating Filter:   Alert me  

Zend_Feed import problem

by arthur@layese.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just noticed this error using Zend_Feed::import()

DOMDocument cannot parse XML: DOMDocument::loadXML() [domdocument.loadxml]: Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65 in Entity, line: 26

It shows that the Zend_Feed does not work with ñ or equivalent characters in the xml. Is there any workaround with this? Did somebody experienced this error?

Thanks,
art


--
Laurence J. Peter  - "Originality is the fine art of remembering what you hear but forgetting where you heard it."

Re: Zend_Feed import problem

by Matthew Weier O'Phinney-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-- arthur@... <arthur@...> wrote
(on Sunday, 20 July 2008, 01:36 AM +0800):
> I just noticed this error using Zend_Feed::import()
>
> DOMDocument cannot parse XML: DOMDocument::loadXML() [domdocument.loadxml]:
> Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65 in
> Entity, line: 26
>
> It shows that the Zend_Feed does not work with   or equivalent characters in
> the xml.

Actually, it's not Zend_Feed that doesn't work with it... it's PHP's own
DOMDocument.

Typically, these sorts of issues are due to mixing encodings -- make
sure you are actually receiving UTF-8 when you pass data to Zend_Feed.

> Is there any workaround with this? Did somebody experienced this
> error?

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/

Re: Zend_Feed import problem

by arthur@layese.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Matthew for a quick reply. I'll try to find some other alternatives other than directly call Zend_Feed::import

Thanks,
art

On Sun, Jul 20, 2008 at 2:39 AM, Matthew Weier O'Phinney <matthew@...> wrote:
-- arthur@... <arthur@...> wrote
(on Sunday, 20 July 2008, 01:36 AM +0800):
> I just noticed this error using Zend_Feed::import()
>
> DOMDocument cannot parse XML: DOMDocument::loadXML() [domdocument.loadxml]:
> Input is not proper UTF-8, indicate encoding ! Bytes: 0x93 0x74 0x68 0x65 in
> Entity, line: 26
>
> It shows that the Zend_Feed does not work with   or equivalent characters in
> the xml.

Actually, it's not Zend_Feed that doesn't work with it... it's PHP's own
DOMDocument.

Typically, these sorts of issues are due to mixing encodings -- make
sure you are actually receiving UTF-8 when you pass data to Zend_Feed.

> Is there any workaround with this? Did somebody experienced this
> error?

--
Matthew Weier O'Phinney
Software Architect       | matthew@...
Zend Framework           | http://framework.zend.com/



--
Fran Lebowitz  - "Food is an important part of a balanced diet."