Newbie problem with codecs

Alex Martelli aleax at aleax.it
Thu Aug 21 01:36:17 EDT 2003


derek / nul wrote:
   ...
> Traceback (most recent call last):
>   File "apply_physics.py", line 12, in ?
>     codecs.lookup(BOM_UTF16_LE)
> NameError: name 'BOM_UTF16_LE' is not defined
> 
> Could someone point to my mistake please?

Change the statement to:

codecs.lookup(codecs,BOM_UTF16_LE)


Alex





More information about the Python-list mailing list