Exporting Unicode characters

6 posts, 0 answers
  1. Chris
    Chris avatar
    7 posts
    Member since:
    Feb 2015

    Posted 12 Sep Link to this post

    Hi,

    Is it possible to export Unicode characters from supplementary planes (above Plane 0), i.e. those that need more than 2 bytes of storage?  They seem to be silently ignored (normally a replacement character such as '?' is shown for unsupported code points).

    A simple test shows that small value code points are OK but longer ones are ignored.  This should show 2 smiley faces:

    var editor = new FixedContentEditor(container);
    editor.DrawText("Smiley face OK: \u263A   Smiley ignored: \uD83D\uDE0A");

    Any comments/suggestions would be welcome.

    Thanks,
    Chris

    UI for WPF R2 2016 SP1

  2. Tanya
    Admin
    Tanya avatar
    402 posts

    Posted 15 Sep Link to this post

    Hi Chris,

    In order to ensure that each character will be properly drawn in the PDF document, you should verify that the symbol is available in the font you are using.

    You could find the font that will suit your needs and register it using the API of PdfProcessing. Here is a forum thread describing how you can register a font.

    Hope this helps.

    Regards,
    Tanya
    Telerik by Progress

  3. Chris
    Chris avatar
    7 posts
    Member since:
    Feb 2015

    Posted 20 Sep in reply to Tanya Link to this post

    Tanya,

    Thanks for that, it may well be the solution.  I've had a quick try to register and use the correct font; still no luck.  It's likely my mistake so I'll investigate further shortly and report back.

  4. Deyan
    Admin
    Deyan avatar
    135 posts

    Posted 23 Sep Link to this post

    Hello Chris,

    We have tested this scenario with different fonts on our side. Unfortunately, it turns out that there is an issue with exporting Unicode characters above the Basic Multilingual Plane. There is no workaround for exporting such characters. We have logged this issue in our feedback portal and you may follow its implementation progress by following this feedback item.

    If you have other questions or concerns please contact us again.

    Regards,
    Deyan
    Telerik by Progress

  5. Chris
    Chris avatar
    7 posts
    Member since:
    Feb 2015

    Posted 27 Sep in reply to Deyan Link to this post

    Deyan, thanks for the update and for confirming my findings.  I'll track the issue.

     

    Chris

     

  6. Boby
    Admin
    Boby avatar
    595 posts

    Posted 27 Sep Link to this post

    Hi Chris,

    We have added  some Telerik points to your account for the report. 


    Regards,
    Boby
    Telerik by Progress

Back to Top