question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UTF-16-Support/Emoji Support

See original GitHub issue

Not 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 screen shot 2018-11-12 at 21 56 53

What I expected 😍 😎 😘 😐

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:17

github_iconTop GitHub Comments

5reactions
Uzlopakcommented, Nov 13, 2018

I checked it. The emojis are UTF-16 and not UTF-8. So we dont support these symbols. Dont know how to solve this.

0reactions
FarrukhKhan11commented, Oct 28, 2022

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 Capture

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found