notanumber/django-usda — pull request #3 by dnagoda (2013-03-21 16:39:16+00:00)
Title: Beginnings Of sr25 Support

First off, great project. I was going to create something in the same vein and was happy to see that I could spend my time on other things. But, I wanted to use the latest usda file (sr25) and the existing import command failed because of cp1252 characters that have found their way into the latest files.

This change converts the dict entries to unicode on the fly by decoding each entry from cp1252. I'm only doing this conversion on the FOOD_DES and NUTR_DEF files, because those are the only 2 with special cp1252 characters in sr25.

Please take a look and let me know what you think. I'd be happy to test this change on sr23-sr25 and update the README etc... to indicate a wider range of support.