HackerTube

THE VIDEO SHELF · python unicode

Pragmatic Unicode, or, How do I stop the pain?

Ned Batchelder's PyCon 2012 talk gives a quick overview of what Unicode is, then focuses on what a Python programmer needs to handle text correctly. It presents the 'Unicode sandwich' strategy: decode bytes at input, work with Unicode internally, encode at output.

Why HN readers recommended it

Commenters point to it as the clearest explanation of Python's bytes versus Unicode model and the Unicode sandwich, which finally makes the confusion click.

This is a summary from the source dataset, not an endorsement by Hacker News or the video creator.

Video & recommendation details

Creator / channel
Next Day Video
Topic
python unicode
Format
talk
Level
intro
HN recommenders in dataset
2
HN mentions in dataset
4
Recommendation years in dataset
2015–2019

These counts and years describe the included Hacker News records; they are not YouTube views or the video’s publication date.

From the original HN conversations

Excerpts from the recorded comments. Follow each source for the full comment and surrounding discussion.

  • You have to invest some time in understanding how strings (byte strings and unicode) work in Python. I put this off for way too long. After A TON OF PAIN I decided to put the time in to watch the talk "Pragmatic Unicode, or, How …

    jteppinette on Hacker News · 2019-05
    In “Python's batteries are leaking”
  • From a quick skimming through the docs[0], Perl 5.8's Unicode support sounds a lot like Python 2's except that the default encoding is latin1 instead of ASCII - i.e. unlike the Python 3 way of explicitly decoding binary data into Unicode text at the point …

    ptx on Hacker News · 2015-01
    In Why Perl Didn't Win

Summaries, classifications and recommendation records are from the HackerTube source dataset. Read about this library and its limitations.