Unicode in Python

It’s a very long time since I have had to deal with binary code translations, but when dealing with HTML and JSON with Python, I need to get to grips with it. The € symbol for instance requires the extended character set support and rss should be written in utf-8. This page collects the notes I made in learning about Python’s support for unicode/ascii translations.

Here are the links,

  1. https://docs.python.org/2/howto/unicode.html, the documentation
  2. http://www.pythoncentral.io/python-unicode-encode-decode-strings-python-2x/, a bit easier to read.

See also

  1. http://stackoverflow.com/questions/15237702/python-unicode-encode-error-ordinal-not-in-range128-with-euro-sign
  2. http://farmdev.com/talks/unicode/, might be useful if I could get it to wrk

Related Posts

  • Python and datetime Links Here are some links http://docs.python.org/library/datetime.html, Official […]
  • Converting dates to strings using Python While working on converting ello.json to rss, I needed to convert the date formats, I […]
  • Python I returned to Python in Oct 2010. I have two problems to solve, converting my […]
  • JSON to XML In order to export the ello.co feed, I need to convert the JSON to XML. This isn't the […]
  • Exporting ello.co ello export a feed as JSON, here's its name structure http://ello.co/username.json but […]

2 thoughts on “Unicode in Python

  1. It’s not working for me. Komodo has a preblom with the quotes you used and the – symbol you used also when I fixed them it was giving me an errorThis one:Traceback (most recent call last): File C:\Users\Eoin\Documents\Python\EasyGUI\eg.py , line 20, in harv = harv + har[i][‘Result’] + + har[i][‘FirstURL’] + \n\n’KeyError: Result’

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.