same code same tables but not the same result(use flask and postgres)

Chris Angelico rosuav at gmail.com
Wed Jul 9 09:22:58 CEST 2014


On Wed, Jul 9, 2014 at 5:14 PM, Frank Liou <fk26541598fk at gmail.com> wrote:
> one i got
>
> MTIzNDU2Nzg=   <==it's right
>
> anoter i got
>
> \x4d54497a4e4455324e7a673d

Encode that string as ASCII and represent the bytes in hexadecimal,
and you get the second one. My guess is that maybe you have one of
them running Python 2 and one running Python 3.

ChrisA



More information about the Python-list mailing list