0

Is it possible in node-webkit to create menu items that contain special characters like "ü", "ä", "ö"? When you create a new menu item with a special character in the label, it will display it like this (same goes for tooltips):

var menu = new nw.Menu();
menu.append(new nw.MenuItem({ label: "Spalte einfügen" }));

screenshot

4

1 回答 1

0

您需要对特殊字符进行编码才能正确显示。

以下内容应该适合您:

var menu = new nw.Menu();
menu.append(new nw.MenuItem({ label: "Spalte einf\u00FCgen" }));

您可以将https://unicode-table.com/en/上的表格用于其他人,它只是\u{Unicode Number}

于 2017-06-03T00:58:52.997 回答