UTF-16-Support/Emoji Support
See original GitHub issueNot sure if I’m doing something wrong, but I can’t display emojis inside the PDF.
Are you using the latest version of jsPDF? Version 1.4.1
Steps to reproduce
pdf.text('😍 😎 😘 😐', 10 ,10)
https://jsbin.com/sohijak/2/edit?html,js,output
What I saw
What I expected 😍 😎 😘 😐
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:17
Top Results From Across the Web
UTF-16-Support/Emoji Support #2072 - parallax/jsPDF - GitHub
I checked it. The emojis are UTF-16 and not UTF-8. So we dont support these symbols. Dont know how to solve this.
Read more >Comparing gender emojis in UTF-16 - Stack Overflow
I tried comparing the string with "👮", but it wasn't detected. This Police emoji above is made of two Unicode "Characters", better called ......
Read more >Everything You Need To Know About Emoji
The Unicode Standard provides three distinct encoding forms for Unicode characters, using 8-bit, 16-bit, and 32-bit units. These are named UTF-8 ...
Read more >Full Emoji List, v15.0 - Unicode
№ Code Browser CLDR Short Name
1 U+1F600 😀 grinning face
2 U+1F603 😃 grinning face with big eyes
3 U+1F604 😄 grinning face with smiling...
Read more >Alpha-- support for UTF-16: emoji on Windows - SWI-Prolog
I have uploaded a lot of patches that establishes support for Reading and writing UTF-16. The encoding names have changed from unicode_le ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I checked it. The emojis are UTF-16 and not UTF-8. So we dont support these symbols. Dont know how to solve this.
Tried many solutions but unable to export emojis in pdf. Kindly assist if there is any solution in jspdf to export emojis is pdf doc.
Output