Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"native" only printing correctly on Mac (not Windows or Linux) #879

Open
ryancwalsh opened this issue Dec 11, 2023 · 1 comment
Open

"native" only printing correctly on Mac (not Windows or Linux) #879

ryancwalsh opened this issue Dec 11, 2023 · 1 comment

Comments

@ryancwalsh
Copy link

Thanks for your amazing library!

I'm trying to use emoji-mart within an Electron app that gets packaged into 3 different apps: Mac, Windows, Linux.

On Mac, it works.

On Windows, the native emojis are messed up:

 emoji: {
      id: 'heart_eyes',
      name: 'Smiling Face with Heart-Eyes',
      native: '😍',
      unified: '1f60d',
      keywords: [Array],
      shortcodes: ':heart_eyes:'
    }

E.g. Why is 🥖 printing as 稜 in my Electron app when I run it in Windows?

I'll come back to this question and edit it to paste what happens on Linux.

Why might this happen?

Thank you so much for all of your hard work!

@Boncom99
Copy link

Hi, maybe I'm a bit late, but I was able to solve this by generating the native emoji from the unified:

String.fromCodePoint(parseInt(emoji.unified, 16));

Hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants