Save text file using UTF-8 in Python

with open(“filename.txt”, “w”, encoding=”utf-8”) as tfs: tfs.write(string_value)