255 ". I tried to do this but fo...">

Pycharm: byte literal contains characters> 255

I found this check in Pycharm: " byte literal contains characters > 255 ". I tried to do this but found nothing.

What does it mean? Why not use these characters?

+5
source share
1 answer

You are using a character that goes beyond the usual range of ASCII 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 disappear.

If not, send them an email or go to the forums .

+7
source

Source: https://habr.com/ru/post/1207266/


All Articles