- Electron version:
  1.1.1
- Operating system:
  win 10

I want to open a dir in local disk on windows, but noticed if there are some chinese chars in the path, it just did not work

you can reproduce it by create a dir named "测试" and try to open that path

( I  did not test on newer electron version as I have to stick to electron 1.1.1 for there is a serious bug in later electron version https://github.com/electron/electron/issues/5844 )

atom/common/platform_util_win.cc
std::string escaped_url = url.spec();
  escaped_url.insert(0, "\"");
  escaped_url += "\"";
  
  
  
  
  const size_t kMaxURLLength = 2048;
  if (escaped_url.length() > kMaxURLLength) {
    NOTREACHED();
    return false;
  }
  if (base::win::GetVersion() < base::win::VERSION_WIN7) {
    if (!ValidateShellCommandForScheme(url.scheme()))
      return false;
  }
  if (reinterpret_cast<ULONG_PTR>(ShellExecuteA(NULL, "open",
                                                escaped_url.c_str(), NULL, NULL,
                                                SW_SHOWNORMAL)) <= 32) {
    
    
    
    return false;
  }
  return true;
}
bool MoveItemToTrash(const base::FilePath& path) {