This is working in IP 1.1b1:

C:\IronPython>ipy.exe
IronPython 1.1b1 (1.1) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
import sys
sys.path.append(r'c:\Python24\Lib')
from encodings import codecs
codecs
<module 'codecs' from 'c:\Python24\Lib\codecs.py'>
codecs.lookup('utf-8')
(<built-in function utf_8_encode>, <function decode at 0x000000000000002B>,
<class encodings.utf_8.StreamReader at 0x000000000000002C>, <class
encodings.utf_8.StreamWriter at 0x000000000000002D>)


Andrew

2007/3/8, Dan Shechter <[EMAIL PROTECTED]>:

Well, right now (1.0) neither UTF-8, utf-8, utf8 nor utf_8 seem to be
working...

So I take it there's not much than to sit and wait right now?
Does 1.1B1 help me?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Wednesday, March 07, 2007 18:51
To: Discussion of IronPython
Subject: Re: [IronPython] IronPython / Unicode / os.walk

I think we'll also accept utf_8 or utf8.  This is basically covered under
this bug
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=3094
(although the description doesn't make it entirely obvious).

If you could vote on the bug it'd help raise the visibility of the issue
and
we'll get to it sooner.

Thanks for reporting this!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John J Lee
Sent: Wednesday, March 07, 2007 7:31 AM
To: Discussion of IronPython
Subject: Re: [IronPython] IronPython / Unicode / os.walk

On Wed, 7 Mar 2007, Dan Shechter wrote:
[...]
>>>> 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?

Did you try 'utf-8' (i.e. lowercase)?


John
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to