Smileys break toPDF

Hello,
It’s so easy now to introduce smileys with Windows + point.
The problem is, one smiley shuffles characters eveywhere in report.
I tried to change the font : same result.
I modified a snippet to show what happens :
https://snippet.webix.com/4v8bp51i

So i’m looking for :

  1. a solution to print smileys
    or
  2. a solution to prohibit user from introducing smileys in fields
    Any suggestion is welcome.
    Have a nice day.

Hello, @LucVV

The PDF js version we are using does not support the export of these symbols.
As a possible solution, we would suggest you define a data scheme for processing data while exporting to PDF. For that purpose use $export key.
In the snippet below, all emojis are just excluded from strings.
https://snippet.webix.com/8upvzpck

Also, there is a possibility to export to PDF as an image. In that case, the picture is generated in the same way as when exporting to PNG.

That solves my problem, thanks a lot.
But the regex that works on Code snippets does not work for me.
This one does : (/[^\p{L}\p{N}\p{P}\p{Z}^$
]/gu, ‘’)
Think i need to investigate a bit more.