Unicode encodeerror: ‘GBK’ codec can’t encode character solution

UnicodeEncodeError: ‘GBK’ codec can’t encode character ‘\ue615’ in position 488084: Illegal Multibyte Sequence

with open('baidu.html', 'w', encoding='utf-8') as f:
    f.write(data)


Read More: