nut.js icon indicating copy to clipboard operation
nut.js copied to clipboard

Window.title() from getActiveWindow return garbled character when title has Chinese character

Open ouchuji opened this issue 2 years ago • 7 comments

Version 2.1.1 Short overview

Issue occurs on

  • [ ] Virtual machine
  • [ ] Docker container
  • [ -] Dev/Host system

Detailed error description

    const current = await getActiveWindow()
    const title = await current.title

title would return ƴ��๤��, but acutal is 拼多多工作台

Steps to reproduce error A window tile wich contains a Chinese character。 You can test get window title of this page https://zhidao.baidu.com/question/25207546.html

Additional content

Please provide any (mandatory) additional data to reproduce the error (Dockerfiles etc.)

ouchuji avatar Jun 08 '22 02:06 ouchuji

Hi @ouchuji 👋

I can confirm that this is a problem. Unfortunately nut.js is not properly supporting unicode yet.

s1hofmann avatar Jun 08 '22 16:06 s1hofmann

OK @s1hofmann , and how can I get @NUT-TREE/NL-MATCHER ? I can not find it at the npm

ouchuji avatar Jul 03 '22 08:07 ouchuji

@ouchuji It’s a private package for sponsors. See https://nutjs.dev/plugins/imagefinder and https://github.com/sponsors/s1hofmann

s1hofmann avatar Jul 03 '22 08:07 s1hofmann

@s1hofmann I am a sponsor now, and how can I get it? You need to set something?

ouchuji avatar Jul 04 '22 01:07 ouchuji

@ouchuji Thanks for sponsoring. Unfortunately, you didn’t sign up for a sponsoring tier entitled to access private packages

67615D5A-D2C4-4808-BB17-F243A598BC91

Also, since this is unrelated to the issue itself, please refer to https://nutjs.dev for further information

s1hofmann avatar Jul 04 '22 07:07 s1hofmann

OK, Thanks

ouchuji avatar Jul 04 '22 09:07 ouchuji

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Aug 04 '22 02:08 github-actions[bot]

Closed in @nut-tree/bolt plugin.

s1hofmann avatar Mar 24 '24 18:03 s1hofmann