U is for Unicode: Solving the Mystery

preview_player
Показать описание
Greg Back

This talk will attempt to resolve some of the mystery and confusing behavior about Unicode (and other text encoding issues) in Python. It will cover Python handles text in general, the differences in Unicode text between Python 2 and Python 3, how various standard library APIs handle Unicode text, and a bit about detecting the encoding of unknown text.

PyOhio is a free (thanks sponsors!) annual conference for Python programmers in and around Ohio and the entire Midwest.

Рекомендации по теме
Комментарии
Автор

very good for a novice like me.
What if I know my code is encoding as # -*- coding: utf-8 -*- that means it was encoded in UTF8 without BOM. What should I do to make the python 2 script works for me?
Many thanks.

XinhLe