import requests
from bs4 import BeautifulSoup
url = "https://www.yahoo.co.jp/";


response = requests.get(url)
#response.encoding = response.apparent_encoding
with open('hoge.html', 'w') as file:
file.write(response.text)

print(response.encoding)

取得したyahooが文字化けするんですが、何が原因かわかりませんか?
文字コードはutf8になるので、これで問題ないはずですが、、、