Chapter 20.4. Summary

  • Unicode allows you to use a single encoding for every language, and Python’s support for Unicode makes internationalization a lot easier.

  • Not every Python library is Unicode aware, so if you use third party libraries, you should test them with Unicode strings.

  • You can generally avoid Unicode decode errors by not mixing and matching Unicode and ASCII strings. In other words, just use Unicode all the time and you should be all set.

  • SQLObject handles Unicode only as well as the underlying database/driver so you’ll want to be careful which database and drivers you pick for your internationalized application.

  • You can use the gettext and lazy_gettext functions anywhere in your TurboGears project to get a localized string.

  • The ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.