How do I declare an encoding for Python source code?

How do I declare an encoding for this code?

I know how to declare encoding in other situations but how would I do it with this?

if used_prefix and cmd=="shoot" and user.name in whitelist:
    name = args.lower()
    if name in killed:
        room.message(user.name+' is already dead.')
    else:
        killed.append(name)
        saveKills()
        room.message('//'+user.name+' shoots '+name+' in the head.')

The error message says:

SyntaxError: Non-ASCII character '\xe3' in file /home/stephen/downloads/inhaley/inhaley.py on line 6, but no encoding declared; see for details.


ANSWERS:


Add

#!/usr/bin/env python
# -*- coding: utf-8 -*-

On the first 2 lines.


Add #coding=utf-8 at the top of your code, as such:

#coding=utf-8

#imports here
import math

print 'The encoding has been set!'

put #coding=utf-8 at the top of your script/file



 MORE:


 ? Squared characters issue on wkhtmltopdf
 ? Squared characters issue on wkhtmltopdf
 ? Squared characters issue on wkhtmltopdf
 ? How to convert a simple html to pdf using wkhtmltopdf?
 ? Rupee symbol shows as blank box on invoice report in odoo
 ? wkhtmltopdf and forms based authentication
 ? wkhtmltopdf is returning blank pages for some urls
 ? Does wkhtmltopdf offer any orphan or keep-with-next control?
 ? wkhtmltopdf font not picked up on windows server
 ? wkhtmltopdf is not rendering fonts and border-radius is incorrect