So I have this great system to automatically update the blog from a list of files when I click a button.
Of course it broke while bringing in the latest post about Hyper-V – UNICODE!!!
Solution was to decode when reading in from file:
with open(blogpost, ‘r’) as bp:
body = bp.read().decode(‘utf-8’)