mmcdole / gofeed

Parse RSS, Atom and JSON feeds in Go
MIT License
2.56k stars 208 forks source link

XML syntax error on line 3131: illegal character code U+001C #183

Closed jdiaz closed 2 years ago

jdiaz commented 2 years ago

Expected behavior

Successful parse

Actual behavior

Throws error

Steps to reproduce the behavior

fp := gofeed.NewParser()
url := "https://gcollazo.com/feed/"
feed, err := fp.ParseRSSFeed(url)
if err != nil {
  fmt.Println(err) // // XML syntax error on line 3131: illegal character code U+001C
}

Note: Please include any links to problem feeds, or the feed content itself!

Necoro commented 2 years ago

There is an encoding issue in the feed:

<td>Recibí confirmación de que el reporte fue recibido y que se trabajaría de inmediato

Firefox' RSS reader fails as well...

jdiaz commented 2 years ago

Thanks!