DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Write Your Code Using Utf-8

04.13.2005
| 17347 views |
  • submit to reddit
        
# -*- coding: utf-8 -*-

Add this line at the beginning of your code. Python won't complain anymore about non-ascii characters in your code.