bmun / huxley

Conference management system for Berkeley Model United Nations.
http://www.bmun.org
BSD 3-Clause "New" or "Revised" License
37 stars 42 forks source link

Catch encoding exceptions when loading assignments #540

Open tdowds opened 7 years ago

tdowds commented 7 years ago

When loading assignments into Huxley we often encounter errors due to Huxley not being able to read special characters (like Chinese characters, accents, tildas, etc.). We should catch these errors and tell whoever is loading assignments which assignment is throwing the exception.

kmeht commented 7 years ago

Yeah, I never really grokked how encoding works in Python 2. One advantage to switching to Python 3 would be that everything is unicode by default.