Back

Efficient Unicode

unicode

Have you encountered a message that said something like this?

UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 0: ordinal not in range(128)

Did you start dropping in .encode()‘s and .decodes()‘s at random as if you were playing whackamole? Have you ever wondered why we even need Unicode? Unicode is not a simple topic, but it doesn’t have to be complex either! In this talk, we will:

  • Cover a brief history of why Unicode was necessary
  • Understand Python 2’s painful approach to unicode
  • Understand Python 3’s BETTER approach to unicode
  • Learn how to solve common problems such as UnicodeDecodeError and UnicodeEncodeError
  • Learn some best practices when upgrading Python 2 to Python 3.

This talk has been given at:

<slides here >

Published 6 Mar 2018