You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/koalalorenzo/Documents/Dropbox/Progetti/Reali Network/reali-bufferizer/src/buffer-python/buffpy/managers/updates.py", line 110, in new
post_data += "profile_ids[]=%s&" % self.profile_id
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 59: ordinal not in range(128)
So I checked if the profile_id is not ASCII but it is. So I tried to use django smart_str to fix it but it does not work. My text is imported from XML using UTF-8 and converted to ASCII using this line:
Well, obvious an input is not ASCII when it been passed to facebook_profile.updates.new(smart_str(fb_text), media=fb_media)
Can you check fb_text to be ASCII by print "%s" % descrizione?
Anyway, we should fix this in order to support unicode, because facebook and twitter supports unicode and if we convert unicode to ascii, we will remove all special characters, which sucks big time.
Yes descrizione was not ASCII code. The strange fact is that i made it ASCII using the "decode" and "encode". so I don't know why it was not working. Anyway I hope everything will be updated to unicode ASAP 👍
I noticed that when I create a new update using these codes:
I Got this exception:
So I checked if the profile_id is not ASCII but it is. So I tried to use django smart_str to fix it but it does not work. My text is imported from XML using UTF-8 and converted to ASCII using this line:
What is my mistake? Is the profile_id not ascii? Is that ID the ID I gave( _id="50a29021d932############" ) ? The string is ASCII!
The text was updated successfully, but these errors were encountered: