~fabiozaramella/scratch/fix-1313440

Viewing all changes in revision 1329.

  • Committer: Cody Garver
  • Author(s): Robert Roth
  • Date: 2014-07-21 02:11:46 UTC
  • mfrom: (1325.1.3 scratch)
  • Revision ID: cody_garver-20140721021146-ifewfkyqyym31u37
* Use fallback charset in case chardet.py fails
* Change fallback charset to ISO-8859-1, in case encoding could not be detected. UTF-n encoding can usually be detected from the first byte
(based on the docs of chardet [1])

[1] http://www.tech.co.bydgoszcz.pl/doc/python-chardet/how-it-works.html

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: