Reputation: 63
I found this inspection in Pycharm: "byte literal contains characters > 255
". I tried to google it, but found nothing.
What does it mean? Why is it not OK to use such characters?
Upvotes: 6
Views: 4084
Reputation: 4762
You're using a character that falls outside the normal ASCII range of ordinals 0 -> 255.
Put the following 2 lines at the top of your python files:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
and the error should go away.
If not, email their support, or go to their forums.
Upvotes: 11