HackerTube / Video

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

Next Day Video

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.

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.

4 Hacker News mentions · 2015–2019

Topics

Watch on YouTube

Explore more videos