i use flask connect to postgres def post_insert(username): conn = engine.connect() encoded = base64.b64encode(username.encode('utf-8')) puresql = sqla.text("INSERT INTO friends(name) VALUES(:encoded)") conn.execute(puresql,encoded = encoded)
i insert username encode with base64 to my database but one i got MTIzNDU2Nzg= <==it's right anoter i got \x4d54497a4e4455324e7a673d i change database to another database but tables is use same code to create what 's wrong?? -- https://mail.python.org/mailman/listinfo/python-list