Skip to content

Commit

Permalink
Use utf-8 as the default encoding
Browse files Browse the repository at this point in the history
(fixes crashes on failure to import chardet)
  • Loading branch information
slingamn committed May 2, 2012
1 parent fdd0821 commit 35d5ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def _detected_encoding(self):

# Trust that chardet isn't available or something went terribly wrong.
except Exception:
pass
return 'utf-8'


@property
Expand Down

0 comments on commit 35d5ac6

Please sign in to comment.