Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

[BUG] The "caption" does not accept any language except English #1265

Closed
egyjs opened this issue Jan 28, 2020 · 3 comments
Closed

[BUG] The "caption" does not accept any language except English #1265

egyjs opened this issue Jan 28, 2020 · 3 comments
Assignees

Comments

@egyjs
Copy link

egyjs commented Jan 28, 2020

Example file

/examples/photos/upload_photos.py

Describe the bug

i can't write any other language for example 'arabic'

python upload_photos.py -photo {photo_name} -caption "تجربة"

Log

2020-01-28 08:50:25,175 - INFO - Instabot Started
2020-01-28 08:50:25,263 - DEBUG - Loading cookies
2020-01-28 08:50:25,264 - DEBUG - Loading uuids
2020-01-28 08:50:25,264 - INFO - Recovery from society.screen_uuid_and_cookie.json: COOKIE True - UUIDs True - TIMING, DEVICE and ...
- user-agent=Instagram 105.0.0.18.119 Android (28/9.0; 420dpi; 1080x2260; OnePlus; GM1903; OnePlus7; qcom; en_US)
- phone_id=625abb4a-ea97-4e8c-aa3c-405d6eb3542a
- uuid=33cf1beb-a4f0-415b-a1e0-6c0a8b07cc0b
- client_session_id=ff193a56-55d7-45cd-a8e3-e4872d0a920f
- device_id=android-8fae5976fac8a021
2020-01-28 08:50:25,264 - INFO - LOGIN FLOW! Just logged-in: False
2020-01-28 08:50:26,505 - DEBUG - POST to endpoint: feed/timeline/ returned response: <Response [200]>
2020-01-28 08:50:26,888 - DEBUG - POST to endpoint: feed/reels_tray/ returned response: <Response [200]>
2020-01-28 08:50:26,896 - INFO - Logged-in successfully as 'society.screen'!
2020-01-28 08:50:26,897 - INFO - Checking test1.jpg
--- Logging error ---
Traceback (most recent call last):
  File "/home/fk48k43208g6/.local/lib/python3.4/logging/__init__.py", line 980, in emit
    stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 74-83: ordinal not in range(128)
Call stack:
  File "upload_photos.py", line 57, in <module>
    pic=pic, caption=caption
Message: 'Uploading pic `test1.jpg` with caption: `\udcd8\udcaa\udcd8\udcac\udcd8\udcb1\udcd8\udca8\udcd8\udca9`'

Expected behavior

i need to write in Arabic or even Chinese, so when I do this it comes to me as question marks

image

@duplicate-issues
Copy link

Hey @el3zahaby,

We did a quick check and this issue looks very darn similar to

This could be a coincidence, but if any of these issues solves your problem then I did a good job 😄

If not, the maintainers will get to this issue shortly.

Cheers,
Your Friendly Neighborhood ProBot

@bruvv
Copy link
Collaborator

bruvv commented Jan 28, 2020

Please try the new version in development branch (bab1074)

@bruvv bruvv added the bug label Jan 28, 2020
@bruvv bruvv self-assigned this Jan 28, 2020
@stale
Copy link

stale bot commented Mar 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 28, 2020
@stale stale bot closed this as completed Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants