WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
[resolved] Hebrew support - Illegal Character Encoding (14 posts)

  1. yigaler
    Member
    Posted 3 years ago #

    Hi,

    Just installed HungryFeed. The thumbnails of feed items are displayed OK, but the titles are not displayed or only few giberish characters.

    In addition there are two red error messages above the list:

    An error occured while processing the
    feed: mb_convert_encoding(): Illegal
    character encoding specified

    Apparently the plugin does not support Hebrew characters.
    Can this be changed or fixed ?

  2. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Yigaler,

    The error seems to be happening with SimplePie - which is the RSS library that is installed with WordPress. It seems to be hardcoded to UTF-8 characterset. HungryFEED uses the RSS functions that are provided by WordPress.

    WordPress includes SimplePie 1.2 as a default, but this is outdated and the latest version of SimplePie is 1.3. It may be possible to update that library in your WordPress installation and it might resolve the characterset bugs...? I'm not 100% sure about that but it's worth a try.

    The file in WordPress is located at: includes/class-simplepie.php

  3. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    I just noticed that the simplepie site seems to be missing the single download package, but I have a copy of simplepie 1.3-dev. I packaged it up to simplify the process of updating WordPress:

    http://verysimple.com/2011/06/18/update-wordpress-simplepie-to-1-3-dev/

    Please let me know if you are able to do this on your wordpress installation and, if so, let me know if it fixes the characterset issue. I don't know all of the changes in 1.3 but I do see that it has some new functions regarding charactersets, so I have a feeling it may fix your issue.

  4. yigaler
    Member
    Posted 3 years ago #

    Hi verysimple,

    Thanks for your quick reply. I have replaced the class-simplepie.php file with the new one and re-installed the plugin, but it didn't fix the problem.

    If you could advise more, I would be thankful.

  5. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    Hmm, if you give me the feed url i can see if there is some work-around but unfortunately the source of the error is in SimplePie, the library on which HungryFEED relies, however is not authored by me. It would be great if the simplepie guys would resolve the issue, but as far as I know 1.3-dev is the most recent version of the library.

    From previous experience I know that characterset code in PHP can be surprisingly tricky.

  6. yigaler
    Member
    Posted 3 years ago #

    Thanks for the link of the article. I'll read it later.

    Here is the link of the feed:
    http://rss.nrg.co.il/health/

    Thanks for your efforts.

  7. yigaler
    Member
    Posted 3 years ago #

    I was mixing up about the link. Forget about it.

  8. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    One work-around that you can do is use a feed aggregator to deal with the characterset issues, for example:

    [hungryfeed url="http://mix.chimpfeedr.com/91ac3-rss-nrg-co-il-health"]

    This is using the service http://www.chimpfeedr.com/ as a proxy for the original feed. but it seems to fix the characterset problem for wordpress.

    You can also do even more using Yahoo pipes, here is a simple one:

    [hungryfeed url="http://pipes.yahoo.com/pipes/pipe.info?_id=61eb2d31f1c74671d99c9e5b7ea498c6"]

  9. yigaler
    Member
    Posted 3 years ago #

    Thanks a lot for these solutions. Both seem perfect.

    I have more more question regarding SimplePie Ver 1.3-Dev.

    I am using im my (first) WP site the Suffusion theme.

    When I replace the file class-simplepie.php with the new version (1.3-Dev),

    the theme's options are not displayed anymore. Is this version an official one, or should I wait for an official version, before I write to Suffusion support ?

  10. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    I would say since 1.3 does not solve your original problem and the work-around above does, i would just put the original simplepie library back in place.

  11. yigaler
    Member
    Posted 3 years ago #

    OK. Thanks again

  12. yigaler
    Member
    Posted 3 years ago #

    Hi verysimple,

    The HungryFeed plugin, works perfect with RSS feeds, which are processed by Yahoo Pipes (as you had demonstrated above).

    But Yahoo Pipes has also the ability to create an RSS feed out of a series of items on a page (at least, that what I have understood from some articles.

    But when I create such a feed, and try to display it thru HungryFeed, I get the following error:
    HungryFEED can't get feed. Don't be mad at HungryFEED.
    SimplePie reported: A feed could not be found at http://pipes.yahoo.com/pipes/pipe.info?_id=14da9fa65bd50e0838ff266dd9cef1fc

    I'm not sure if this problem is in the scope of this support forum or of your support of HungryFeed plugin, but I'd appreciate it very much, if you could look into it.

  13. Jason
    Member
    Plugin Author

    Posted 3 years ago #

    It seems that now to use pipes you need to visit that page in your browser and then click the link that says "Get as RSS" which will give you a long URL that you can use with HungryFEED.

  14. yigaler
    Member
    Posted 3 years ago #

    It works perfectly ! Thank you very much

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic