FDA / openfda

openFDA is an FDA project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.
https://open.fda.gov
Creative Commons Zero v1.0 Universal
568 stars 131 forks source link

Standalone command to convert MAUDE files to UTF-8 encoding is wrong #101

Closed kgugle closed 4 years ago

kgugle commented 5 years ago

In openfda/maude/join_maude.py

iconv -f "ISO-8859-1//TRANSLIT" -t UTF8 -c | \
              iconv -f "UTF8//TRANSLIT" -t UTF8 -c \
              input_file > output_file

should be

iconv -f "ISO-8859-1//TRANSLIT" -t UTF8 -c input_file | \
              iconv -f "UTF8//TRANSLIT" -t UTF8 -c \
              > output_file
dkrylovsb commented 5 years ago

Thanks for reporting; we'll investigate.