diff --git a/requests/models.py b/requests/models.py index 62dcd0b7..4eb52d94 100644 --- a/requests/models.py +++ b/requests/models.py @@ -855,6 +855,9 @@ class Response(object): # Fallback to auto-detected encoding. if self.encoding is None: encoding = self.apparent_encoding + # Forcefully remove BOM from UTF-8 + elif self.encoding.lower() == 'utf-8': + encoding = 'utf-8-sig' # Decode unicode from given encoding. try: