Postgres can handle UTF-8 encoded data. you would probably be better off not encoding stuff into b64 in python and just using postgres to store the utf8 data.
The string "12345678" is not base64 encoded. That was probably an entry inserted from another bit of code. >>> print base64.b64encode("12345678") MTIzNDU2Nzg= These strings can't be base64 decoded : >>> print base64.b64decode("\x4d54497a4e4455324e7a673d") >>> print base64.b64decode("x4d54497a4e4455324e7a673d") This one can : >>> print base64.b64decode("4d54497a4e4455324e7a673d") -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.