From: <no...@so...> - 2002-05-30 19:47:25
|
Bugs item #551888, was opened at 2002-05-03 17:24 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=551888&group_id=12867 Category: Library Group: None Status: Open >Resolution: Works For Me Priority: 5 Submitted By: Lars Marius Garshol (larsga) >Assigned to: Finn Bock (bckfnn) Summary: Opening utf-8 files with codecs fails Initial Comment: Something strange happens when I try to read utf-8-encoded files with Jython. import codecs codecs.open(anyfile, "r", "utf-8") throws a Java ArrayIndexOutOfBoundsException, always, for any file. ---------------------------------------------------------------------- >Comment By: Finn Bock (bckfnn) Date: 2002-05-30 21:47 Message: Logged In: YES user_id=4201 Added as test361. Seems to work for both 2.1 and current CVS: Jython 2.1 on java1.4.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import codecs >>> codecs.open("dd", "r", "utf-8") <codecs.StreamReaderWriter instance at 836584> >>> Do you have a java stacktrace? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=551888&group_id=12867 |