Some source files, from downloaded code, have the following header
# -*- coding: utf-8 -*-
I have an idea what utf-8 encoding is but why would it be needed as a header in a python source file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
wherever you need to use in your code chars that aren’t from ascii, like:
interpreter will complain that he doesn’t understand that char.
Usually this happens when you define constants.
Example:
Add into x.py
then start a python console