Encoding error, ISO-8859-1 : `import requests`

`test = requests.get("https://www.hipstercode.com/")`

`outfile = open("./settings.txt", "w")
test.encoding = 'ISO-8859-1'`

`outfile.write(str(test.text))`

The error that i'm getting is:  File `"C:/Users/Bamba/PycharmProjects/Requests/Requests/Requests.py", line 8, in <module>
    outfile.write(str(test.text))
  File "C:\Users\Bamba\AppData\Local\Programs\Python\Python35\lib\encodings\cp1255.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xef' in position 0: character maps to <undefined>`