<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>