Tim\'s picture      Blogging Ottinger (tim)

2005-December-28

Python Unicode codecs

Filed under: Programming

I discovered the python codecs module today. That took long enough. I haven’t been playing with unicode much, or at least not in python. The trick I needed was the codecs.open(fname,mode,encoding) for reading and writing unicode files. It’s awesome stuff.

Of course, as I wrote at the company blog I was able to do verification and exploration in the python interactive environment (the only environment, heh) and get this resolved very quickly with minimal help from DiveIntoPython.

Now I know how THATs done.

In python, try: help(codecs)

Comments »

The URI to TrackBack this entry is: http://tottinge.blogsome.com/2005/12/28/python-unicode-codecs/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here