prof18 / RSS-Parser

A Kotlin Multiplatform library to parse a RSS Feed
Apache License 2.0
499 stars 127 forks source link

Cached feed doesn't use charset #95

Closed moshenskyi closed 1 year ago

moshenskyi commented 2 years ago

Describe the bug I use the RSS feed with the Ukrainian language. I have chosen the wrong charset in Parser.Builder and after I changed it and restarted the app it shows items with the wrong charset. I should clear the app's data to force applying the new charset.

It would be nice if we could force update the cache from the network if the charset changed

The link of the RSS Feed https://loda.gov.ua/rss?lang=ua

prof18 commented 2 years ago

Thanks for raising that issue and sorry for the late response.

In that sense, it probably would make sense to pass the charset to the getChannel function. Otherwise that won't work if you are parsing multiple feeds