Newbie problem with codecs

derek / nul abuseonly at sgrail.org
Wed Aug 20 21:47:44 EDT 2003


Good people

I am writing my first python program, so be gentle :-)
This program needs to r/w UTF16LE files.

When I run the program I get the following error

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?

Derek


==============================
#!c:/program files/python/python.exe
#
# win32 python 2.3

import sys, string
import codecs

codecs.lookup(BOM_UTF16_LE)





More information about the Python-list mailing list