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) =
codecs.lookup('UTF-8')
cache_file_obj = UTF8_streamwriter(open(cache_file , 'wb'))
cache_file_obj.writelines(cache_data)

where CPython is capable of executing codecs.lookup() successfully and IP
returns:
>>> 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?

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to