[IronPython] Writing to a file with unicode name

abdalla ramadan abdollaramadan.dev at gmail.com
Fri Jul 9 15:53:32 CEST 2010


I am trying to write to a file with the japanese name 青山学院大学相模原キャンパス
The relative path I am passing to the methods is

I used two methods
s = StreamWriter(filenamenew, True, Encoding.UTF8)
outputfile = codecs.open(filenamenew, "w",'utf_8_sig')

which both throwed the following exception:
Unhandled Exception: System.ArgumentException: Illegal characters in path.

Thanks very much for advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100709/0ae7d7b0/attachment.html>

More information about the Ironpython-users mailing list