I have a dictionary and I want to convert every value to utf-8. This works, but is there a \"more pythonic\" way?
for key in row.keys():
Python 3 version building on that one answer by That1Guy.
{k: str(v).encode("utf-8") for k,v in mydict.items()}