Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27000

    Hi there,
    I have the following issue:
    I use PD4ML tags library which gets a custom tag as a body of PDF. Additionally I use headers and footers also as a custom tags. So the umlauts ö,ü,ß working fine, but ä sometimes shows broken character (a?).
    Could you please check it? It’s really interesting because in the same document could be valid and broken umlauts…
    P.S. See attached example

    #29689

    Unfortunately you did not publish a JSP code snippet to see the way you defines headers/footers.

    Try to define headers with HTML code using instead of (and footers correspondingly).

    Does it change anything?

    #29690

    Nope.. The issue that header/footer shows the umlauts without any problems.. But body sometime fails with ä as I said.
    The code looks like that:

    <pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New" /><br /> <pd4ml:page.header><br /> <t:pdf-header companyName="${companyName}" personName="${personName}" address="${companyAddress}" /><br /> </pd4ml:page.header><br /> <pd4ml:page.footer height="50"><br /> <t:pdf-footer partner="${invoice.partner}" /><br /> </pd4ml:page.footer><br /> <t:pdf-invoice invoice="${invoice}"><br /> <jsp:attribute name="title">${title}</jsp:attribute><br /> <jsp:body><br /> <table class="table padded"><br /> <tr class="header"><br /> <th width="10%" class="first"><spring:message code="pdf.finance.invoices.executionDate" /></th><br /> <th width="50%"><spring:message code="pdf.finance.invoices.product" /></th><br /> <th width="5%" class="text-right"><spring:message code="pdf.finance.invoices.quantity" /></th><br /> <th width="15%" class="text-right"><spring:message code="pdf.finance.invoices.pricePerItem" /></th><br /> <th width="10%" class="text-right"><spring:message code="pdf.finance.invoices.vat" /></th><br /> <th width="10%" class="text-right"><spring:message code="pdf.common.finance.amount" /></th><br /> </tr></table><br /> </jsp:body><br /> </t:pdf-invoice>

    So inside <jsp:body> there are issues..

    #29691

    Hmm… Try to add enable=”false” to – it should return HTML instead of PDF. Check if all placeholders are substituted with data correctly. I would suspect some of them appear as ISO-8859-1, others as UTF-8 – encoded.

    #29692

    @PD4ML wrote:

    Hmm… Try to add enable=”false” to – it should return HTML instead of PDF. Check if all placeholders are substituted with data correctly. I would suspect some of them appear as ISO-8859-1, others as UTF-8 – encoded.

    Just checked the database data – everything stored as UTF..
    With enable=”false” shows the valid values

    #29693

    Can you generate such HTML with a sensitive data stripped off and send it to support pd4ml com?

    #29694

    @PD4ML wrote:

    Can you generate such HTML with a sensitive data stripped off and send it to support pd4ml com?

    Done

    #29695

    A usual UTF-8 code for ä is “C3 A4”, in your document it is “61 CC 88” which is actually a separate definition for a and diacritical marks (umlaut dots) to be rendered as a single glyph.

    I have found an explanation by the link http://www.redleopard.com/2008/12/character-codes-and-encoding/

    Unfortunately PD4ML does not support that notation for the time being. So the only workaround is to replace “61 CC 88” byte chains with “C3 A4” or tune your database to return UNICODE data as regular UTF-8

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.