rust-syndication / rss

Library for serializing the RSS web content syndication format
https://crates.io/crates/rss
Apache License 2.0
419 stars 52 forks source link

read url to bytes buffer instead of a string #76

Closed msehnout closed 5 years ago

msehnout commented 5 years ago

RSS feed can be encoded in different encodings than UTF-8 and the quick_xml library is capable of handling this feature. The previous implementation prevented this from working by loading the response into UTF-8 encoded string, which failed. By using a byte array instead of the string we can use the feature.