I run IronPython0.9.6 in Win2000, System Default encoding is GBK(
simplified Chinese )
in IronPythonConsole:
a= u'\u6211\u4eec'
print a
f = open(1.txt, w)
f.write( a )
f.close()
open the file, only ?? in 1.txt
I grep Encoding.ASCII in source files,
then replace Encoding.ASCII with
On Tue, Dec 27, 2005 at 04:57:32PM -0800, Dino Viehland wrote:
This is an interesting issue... If I take your same code and run it
on CPython it raises an exception: (snip)
Actually, this works when you set defaultencoding.
$ python
Python 2.3.5 (#2, Nov 20 2005, 16:40:39)
[GCC 4.0.3 2005
Cool, then obviously it's just a bug and we'll need to support this and I think
there'll be no problems getting this in the next release. Thanks for pointing
that out.
From: [EMAIL PROTECTED] On Behalf Of Seo Sanghyeon
Sent: Tuesday, December 27, 2005