Skip to content
Myr

Use utf-8 as the default encoding

Before adoption: this commit came in with the history the project adopted, so no landing records it.

(fixes crashes on failure to import chardet)

authored by Shivaram Lingamneni · committed by Shivaram Lingamneni · parent fdd0821 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
789 unmodified lines
790 return detected.get('encoding')791792 # Trust that chardet isn't available or something went terribly wrong.793 except Exception:794 pass794 return 'utf-8'795796797 @property798 def text(self):
49 unmodified lines