SyntaxFix
Write A Post
Hire A Developer
Questions
In general case of writing this unsupported encoding string (let's say data_that_causes_this_error) to some file (for e.g. results.txt), this works
data_that_causes_this_error
results.txt
f = open("results.txt", "w") f.write(data_that_causes_this_error.encode('utf-8')) f.close()