To fix this error, you need to declare the encoding of the source file by adding a magic comment at the top of the file. For UTF-8 encoding (which should cover Cyrillic characters) in Pycharm, the magic comment would look like this:
# -*- coding: utf-8 -*-
# Your other code below
This line should be the first or second line in your Python file.