Adballa:<br>&nbsp; One problem you may be having is with Python trying to escape the backslashes in your Windows file name.&nbsp; I tried a very simple test using the Python &quot;open&quot; statement rather than any fancy .NET things. It created a file with a japenese name on my Windows Vista laptop. Note that I used forward (/) slashes where Windows users would expect a back (\) slash.<br>

<br>&lt;code&gt;<br>out = open(u&quot;c:/temp/青山学院大学相模原キャンパス&quot;,&#39;w&#39;)<br>out.write(&#39;testing...\n&#39;)<br>out.close()<br>&lt;/code&gt;<br><br>The same code works in CPython, too.&nbsp; If I remove the &quot;u&quot; unicode indicator as in <br>

&nbsp;...open(&quot;c:/temp...<br>then the same code will work in IronPython and Python 3.1, since it is unnecessary in IPy and illegal in Python 3.<br>--<br>Vernon<br><br><div class="gmail_quote">2010/7/9 abdalla ramadan <span dir="ltr">&lt;<a href="mailto:abdollaramadan.dev@gmail.com">abdollaramadan.dev@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Hello,<div><br></div><div>I am trying to write to a file with the japanese name&nbsp;青山学院大学相模原キャンパス</div>

<div>The relative path I am passing to the methods is &quot;output\url\c\青山学院大学相模原キャンパス&quot;</div><div><br>
</div><div>I used two methods</div><div>s = StreamWriter(filenamenew, True, Encoding.UTF8)</div><div>and</div><div>outputfile = codecs.open(filenamenew, &quot;w&quot;,&#39;utf_8_sig&#39;)</div><div><br></div><div>which both throwed the following exception:</div>


<div>Unhandled Exception: System.ArgumentException: Illegal characters in path.</div><div><br></div><div>Thanks very much for advance.</div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>