XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Unicode Secrets
Subject: Decoding
Date: 2005-05-20 02:25:14
From: FredrikC

Why not use:
unicode_obj = string_obj.decode('iso-8859-1')
instead of:
import codecs
dec = codecs.lookup('iso-8859-1')[1]
unicode_obj = dec(string_obj)[0]

No Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938