toddwschneider / sec-13f-filings

A nicer way to view SEC 13F filings data
https://13f.info
MIT License
248 stars 52 forks source link

Fix encoding issue when importing #2

Closed morgenfriedel closed 2 years ago

morgenfriedel commented 2 years ago

When running bundle exec rake filings:import_all, the process would fail at 2017 Q3 because some characters were not encoded in UTF-8. There may be a better way to fix this, but my fix was to replace the characters as you can see in the change made to app/lib/sec_client.rb in this PR. Ideally, we could update the encoding somehow so that we aren't losing any characters, but this suffices to at least get the import to complete.