Question

I am trying to parse RSS feeds using Feedzirra.

Some of them are ok, but others return the error:

Error while parsing. Input is not proper UTF-8, indicate encoding !

How do I fix it?

Was it helpful?

Solution

This does not seem to be a Feedzirra issue, IMO. Your libxml or nokigiri dependencies may not be up-to-date. Update these gems and try again.

Like mentioned here, encoding detection is not 100% accurate.

If you'd like to ignore the ones which give you errors, Feedzirra has callback functions

Another feature present in Feedzirra is the ability to create callback functions that get called “on success” and “on failure” when getting a feed. This makes it easy to do things like log errors or update data stores.

Also, please give us more context on what code gives you the error or which file are you trying to parse.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top