# Unicode in Python 2: Decode in, encode out

DevFeed: [Unicode in Python 2: Decode in, encode out](<https://devfeed.tech/articles/unicode-in-python-2-decode-in-encode-out-35482.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/unicode-in-python-2-decode-in-encode-out/>)

Author: Graham King

Published: 2011-08-10T23:24:40Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Django](<https://devfeed.tech/topics/django.md>)

Tags: [decoding](<https://devfeed.tech/tags/decoding.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [guide](<https://devfeed.tech/tags/guide.md>), [practical](<https://devfeed.tech/tags/practical.md>), [python](<https://devfeed.tech/tags/python.md>), [software](<https://devfeed.tech/tags/software.md>), [string](<https://devfeed.tech/tags/string.md>), [unicode](<https://devfeed.tech/tags/unicode.md>), [utf8](<https://devfeed.tech/tags/utf8.md>)

## AI overview

A practical guide to handling Unicode in Python 2. It explains how to decode input strings into Unicode, work with Unicode internally, and encode Unicode when producing output, with examples of input sources and common encodings.

## Source excerpt

"Decoding the Python 2 Unicode puzzle: A practical guide."