Instapy: cyrillic tag

Created on 9 Sep 2017  路  4Comments  路  Source: timgrossmann/InstaPy

Hi. I need to use cyrillic tags (for example '卸懈胁芯褌薪褘械') but can't run script because of error
SyntaxError: Non-UTF-8 code starting with '\xec' in file start.py on line 16, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

bug help wanted

Most helpful comment

use
# coding=utf-8
in the first line of *.py file

All 4 comments

Is there any solution to this? Did you try specifically defining string as unicode characters with smth like str = u"卸懈胁芯褌薪褘械"?

use
# coding=utf-8
in the first line of *.py file

Thank you, it works!

I've made reinstall to another server and now have the same problem with cyrillic tags. I got error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harrypython picture harrypython  路  3Comments

drcyber975 picture drcyber975  路  3Comments

CharlesCCC picture CharlesCCC  路  3Comments

46960 picture 46960  路  3Comments

rahulkapoor90 picture rahulkapoor90  路  3Comments