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
https://chart.googleapis.com/chart?cht=qr&chs=200x200&chl=ThisIsSomeText
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: https://www.studytonight.com/post/javascript-qr-code-generator
Plugin 2(qrenc3.html): https://code.google.com/archive/p/jsqrencode/downloads
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.
Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.
ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJobW5qZWiFd4OOsJ%2ByZZSksrR50pypoqikYrOwvoyonZ%2BkmaOybr3RZpqonJVisbCx0qerZq%2Bfp7huss6rZJ6ln5%2B2br%2FYppmopKM%3D