mk-toolブログ

エンジニアと家のことをごちゃごちゃと書いてます

【Python】TypeError: Unicode-objects must be encoded before hashing

概要

以下のエラーが出たためメモ。

TypeError: Unicode-objects must be encoded before hashing

解決策

文字列の末尾に.encode('utf-8')を追記する。