Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Trouble with server encoding (ISO-8859-15)
    #28718

    I changed the page encoding and now it is not returning this line in log.

    I tried specifying the encoding in the render method, but it doesn’t work.

    StringReader input = new StringReader(content);
    
    HashMap map = new HashMap();
    map.put( "pd4ml.extra.resource.loaders", "package.CustomFileResourceProvider" );
    pd4ml.setDynamicParams(map);
    pd4ml.render(input,fos);

    I removed all page content and only printing “HELLO” and then I tried printing the “content” value:

    <?xml version="1.0" encoding="ISO-8859-15"?><html xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
    </head>
    <body>
    HELLO
    
    </body>
    </html>

    I also tried by specifying TTF with these lines:

    pd4ml.useTTF( "java:fonts", true );
    pd4ml.setDefaultTTFs("Times New Roman", "Arial", "Courier New");

    It continues returning an empty PDF as the one I attach.

    in reply to: Trouble with server encoding (ISO-8859-15)
    #28716

    The server log says:
    new parse attempt with: ISO8859_1

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