mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
Use rchardet instead of charlock_holmes gem
This commit is contained in:
@@ -90,7 +90,7 @@ module Jobs
|
||||
def parsed_feed
|
||||
raw_feed, encoding = fetch_rss
|
||||
encoded_feed = Encodings.try_utf8(raw_feed, encoding) if encoding
|
||||
encoded_feed = Encodings.to_utf8(raw_feed, encoding_hint: encoding) unless encoded_feed
|
||||
encoded_feed = Encodings.to_utf8(raw_feed) unless encoded_feed
|
||||
|
||||
return nil if encoded_feed.blank?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user