Greek Characters not displaying / parsing while using the HTML to PDF plugin

Certified Associate Developer

Hello,

I have a requirement where I want to build a html file out of a template which would have some special characters i.e Greek characters. 

The html file is generated properly and even the alphabets are also displayed eg: alpha , beta etc. 

But when the same file is converted to PDF using the HTML to PDF plugin the Greek alphabets are not displayed.

We are currently using:

  1. HTML Doc from Template to generate the HTML document.
  2. HTML to PDF plugin to convert the HTML into a PDF.

Can any one suggest what we can do here ,any configuration we can use?

Regards,

Salil Raje

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    In the generated HTML, how are the greek characters represented? Can you share a HTML snippet?

  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    <td rowspan="1" colspan="1"><p>β</p></td> ,

    Here the Character Beta is not displayed in the converted PDF.

  • 0
    Certified Lead Developer
    in reply to salilr0401

    What you’ve shown (<td><p>β</p></td>) is a visual representation of the character in the HTML — but it doesn’t tell us how the character is actually encoded at the byte level in the file.

    To properly verify the encoding, especially for special characters like Greek letters, it’s important to open the generated HTML file in a hex editor (or a text editor that can show the file encoding). That way you can check whether the character β is truly encoded as UTF-8 (which would be CE B2 in hex) or something else (like Windows-1252 or ISO-8859-1).

    Also — where is this character coming from in your case?
    Is it hardcoded in the template, or dynamically inserted from Appian (e.g., from a rule input or database)?
    If it’s coming from Appian, and your template is correctly encoded as UTF-8, it should normally be handled as Unicode without issues — so the problem may lie with the font used during PDF rendering.

  • 0
    Certified Lead Developer
    in reply to salilr0401

    Confirmed. Yeah, I did a small test using a Greek lorem ipsum text. I see the Greek letters in the HTML, but only ### in the PDF.

    Could be a font issue. I tried unicode characters and HTML entities. Did not work. I do not have a solution at the moment.

Reply Children