Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2008, 12:15 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default Hex html entities

I'm trying to process a feed that contains hex html entities - specifically € for the euro symbol. Zend_Feed is mangling the entities (I get € instead of €). Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 08:46 PM
Junior Member
 
Join Date: Oct 2007
Posts: 21
Default

Check that your feed encoding is set to UTF-8, and that your server (e.g. Apache) is sending headers to suggest UTF-8 as well.

In Firefox you can right click on the page and select 'View page info' to verify this, or change the encoding in the menu: View->Character Encoding
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-12-2008, 09:40 AM
Junior Member
 
Join Date: May 2008
Posts: 2
Default

I don't think it's an character set problem. If I call DOMDocument::save() on the internal DOMDocument in Zend/Feed/Abstract.php that represents the feed, the entities are decoded correctly in the saved file - but then if I do a foreach on the feed items and save them out individually to another file I get the garbled characters.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:14 PM.