我使用这行代码将文件从 sourcePath 复制到destinationPath。
System.IO.File.Copy(sourcePath,destinationPath);
它工作得很好,但是当我的 destinationPath 包含 unicode 字符时,我会将它们替换为其他字符。例如,如果我的路径是:
/Övrigt/År2016.doc
我将 /Ívrigt/+r2016.doc 复制到我的磁盘上。有没有办法处理这个问题?
谢谢。
我使用这行代码将文件从 sourcePath 复制到destinationPath。
System.IO.File.Copy(sourcePath,destinationPath);
它工作得很好,但是当我的 destinationPath 包含 unicode 字符时,我会将它们替换为其他字符。例如,如果我的路径是:
/Övrigt/År2016.doc
我将 /Ívrigt/+r2016.doc 复制到我的磁盘上。有没有办法处理这个问题?
谢谢。