D
D
danila_cool_dude2018-05-15 22:19:55
Python
danila_cool_dude, 2018-05-15 22:19:55

How to comment in Russian in Sublime Text?

I am writing a program in python and I need to comment out some points (for example), but sublime text gives an error:
print ('hello') #это выводит 'hello'

SyntaxError: Non-ASCII character '\xd1' in file /Volumes/macOS File/p/bot/bot.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

As I understand it, the problem is with the encoding, but I don’t know how to fix it :/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-05-15
@sim3x

https://www.python.org/dev/peps/pep-0263/#defining...

#!/usr/bin/env python
# coding=utf-8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question