Python / PostgreSQL — DatabaseError Pickled UTF8 Problems / Fix Jul 14 2010 This is for personal reference: Had issues with pickeled utf8 resulting in illegal bytecode. order.data = pickle.dumps(toBePickled).decode('raw-unicode-escape').encode('utf-8') Share this: Share on Facebook (Opens in new window) Facebook Email a link to a friend (Opens in new window) Email Like Loading... Related Published by Yuji Tomita I'm a human person. I excel in crafting holistic technology solutions that extend beyond a narrow technical scope. View all posts by Yuji Tomita