首页 文章
  • 2 votes
     answers
     views

    带有非ascii字符的文件路径和C#中的FileInfo

    我得到一个或多或少看起来像这样的字符串: "C:\\bláh\\bleh" 我用它制作一个FileInfo,但是当我检查它的存在时它返回false: var file = new FileInfo(path); file.Exists; 如果我手动将路径重命名为 "C:\\blah\\bleh" 在调试时并确保blah存在于其中的bleh,然后file...

热门问题