Python. Sqlite Encoding. Help me understand this -
Python. Sqlite Encoding. Help me understand this -
im confused behavior, "image" string taken sqlite db. not work:
tweet_sent = api.update_with_media(image, tweet) this works:
tweet_sent = api.update_with_media(str(image), tweet) the first 1 gives me error:
unicodedecodeerror: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128) if string kept in sqlite db "string" (varchar), why calling str on string solves problem?
i guess doesn't have tweepy or string itself, anyway "image" string:
/home/alejandro/proyectos/ol_bit_twit/ol_imagenes/2.jpg python sqlite
Comments
Post a Comment