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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -