[IronPython] IronPython / Unicode / os.walk

Dan Shechter dans at houmus.org
Wed Mar 7 15:27:09 CET 2007

Hi everyone,
I'm using IP 1.0 trying to make some CPython code work as expected.
I'm trying to write a Unicode string using the following piece of code:

 (UTF8_encode, UTF8_decode, UTF8_streamreader, UTF8_streamwriter) =
cache_file_obj = UTF8_streamwriter(open(cache_file , 'wb'))

where CPython is capable of executing codecs.lookup() successfully and IP
>>> codecs.lookup("UTF-8")
Traceback (most recent call last):
  File , line 0, in <stdin>##89
  File , line 0, in Lookup##78
LookupError: unknown encoding: UTF-8

Suggestions, alternatives?

More information about the Ironpython-users mailing list