Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26192

    [language=java:2s3u5kau]java.io.IOException: reset() not supported
    at java.io.Reader.reset(Reader.java:231)
    at org.zefer.C.B.K.A(Unknown Source)
    at org.zefer.C.B.K.?(Unknown Source)
    at org.zefer.pd4ml.PD4ML.A(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)[/language:2s3u5kau]

    Problem is caused by a difference in the HTML encoding (given in html meta tag) and the actually used stream encoding.

    HTML parser takes default encoding this way:
    System.getProperty(“file.encoding”, “ISO8859_1”);

    The document encoding obtained from tag

    If the encodings does not match, than PD4ML tries to reset stream and to re-read it again respecting “Content-Type”. For some streams/readers it does not work.

    In order to fix the problem you could do one of the following:

    • remove if your document is not UNICODE and has Latin chars only
    • set XXX of to the same value, as returned by System.getProperty(“file.encoding”, “ISO8859_1”);
    • run your JVM with -Dfile.encoding=XXX parameter, where XXX is the HTML encoding
    • use the following PD4ML API call render(Reader isr, OutputStream os, URL base, String encoding) where the last parameter should match the HTML encoding
Viewing 1 post (of 1 total)

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