- 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/api/atom_api_shell.cc
#include <string>
#include "atom/common/platform_util.h"
#include "atom/common/native_mate_converters/file_path_converter.h"
#include "atom/common/native_mate_converters/gurl_converter.h"
#include "atom/common/node_includes.h"
#include "native_mate/dictionary.h"
namespace {
bool OpenExternal(const GURL& url, mate::Arguments* args) {
  bool activate = true;
  if (args->Length() == 2) {
    mate::Dictionary options;
    if (args->GetNext(&options)) {
      options.Get("activate", &activate);
    }
  }
  return platform_util::OpenExternal(url, activate);
}
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
                v8::Local<v8::Context> context, void* priv) {
  mate::Dictionary dict(context->GetIsolate(), exports);
  dict.SetMethod("showItemInFolder", &platform_util::ShowItemInFolder);
  dict.SetMethod("openItem", &platform_util::OpenItem);
  dict.SetMethod("openExternal", &OpenExternal);
  dict.SetMethod("moveItemToTrash", &platform_util::MoveItemToTrash);
  dict.SetMethod("beep", &platform_util::Beep);
}
}  
NODE_MODULE_CONTEXT_AWARE_BUILTIN(atom_common_shell, Initialize)