Why Does Script for Offline Qr Code Doesn't Work for Emoji Symbols?

My requirement is to generate QR code for below 2 texts in javascript/jQuery

  • Text 1: Hello, I am first plain text
  • Text 2: I am 2nd text with emojis like shopping cart 🛒 and star 🌟

Condition is that I can't use any URL feed to generate QR code online like below Google QR example

If I use above, QR code for both texts are generated successfully(checked after scanning)

I only have to use any QR code plugin within my code to generate QR code offline(no network connectivity restriction)
So, I tried below jQuery plugins that would work offline

Plugin 1:
Plugin 2(qrenc3.html):

If I use any of above 2 plugins, the QR code is properly generated for Text 1 only, not Text 2.
If text has emojis, it creates improper QR code. Check below generated QR codes.

For Text 1: (Plain text)below is code generated(proper text comes after scanning)

For Text 2: (Emojis)below is code generated(Unknown encoding or not scannable)

I need help if anyone can solve above or share any jQuery plugin (offline) that would generate QR code for emojis.

[I have not added any code as plugins already have demo in them. Hope that's fine]
Thanx in advance for help.

3
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article