node-notifier icon indicating copy to clipboard operation
node-notifier copied to clipboard

Chinese Support?

Open JasonkayZK opened this issue 5 years ago • 4 comments

How to support chinese nitification? I found it wrong when i write someting like this:

    notifier.notify(
        {
            title: '大家好',
            message: '放假休息重要通知',
            icon: path.join(__dirname, 'clock.ico'),
            sound: true,
        },
    );

And the result it pretty ugly like this: 1602646752(1)

So i was wondering how can i change the encoding when send notifications. Thanks!

JasonkayZK avatar Oct 14 '20 03:10 JasonkayZK

Hi! This looks like an issue with the encoding snoretoast itself. Does it work if you use it directly manually through the command line?

mikaelbr avatar Oct 22 '20 19:10 mikaelbr

It's weird! Somehow it works with pure snoretoast-cli! 1603417592

JasonkayZK avatar Oct 23 '20 01:10 JasonkayZK

Chinese displays fine on my computer. Maybe you can try saving the js source file in UTF-8 encoding?

felixhao28 avatar Nov 10 '20 04:11 felixhao28

It's weird, because the js file is already in UTF-8 encoding!

JasonkayZK avatar Nov 10 '20 06:11 JasonkayZK

Does actions support Chinese? like this:

notifier.notify(
    {
        title: "任务结束",
        message: "是否开始休息?",
        sound: true,
        actions: ["确认", "取消"],
    },
    (error, response, metadata) => {
        console.log(response, metadata);
    }
);

a958330481 avatar Oct 27 '22 03:10 a958330481