- 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
highlight, NULL);
  if (FAILED(hr)) {
    
    
    
    if (hr == ERROR_FILE_NOT_FOUND) {
      ui::win::OpenFolderViaShell(dir);
    } else {
      LPTSTR message = NULL;
      DWORD message_length = FormatMessage(
          FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
          0, hr, 0, reinterpret_cast<LPTSTR>(&message), 0, NULL);
      LOG(WARNING) << " " << __FUNCTION__
                   << "(): Can't open full_path = \""
                   << full_path.value() << "\""
                   << " hr = " << hr
                   << " " << reinterpret_cast<LPTSTR>(&message);
      if (message)
        LocalFree(message);
      ui::win::OpenFolderViaShell(dir);
    }
  }
}
void OpenItem(const base::FilePath& full_path) {
  if (base::DirectoryExists(full_path))
    ui::win::OpenFolderViaShell(full_path);
  else
    ui::win::OpenFileViaShell(full_path);
}
bool OpenExternal(const GURL& url, bool activate) {