Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Problem with umlauted charactes (Ä,Ö etc..)

Last post 12-03-2008, 8:28 AM by Felix.Liu. 7 replies.
Sort Posts: Previous Next
  •  10-27-2008, 2:38 AM 149519

    Problem with umlauted charactes (Ä,Ö etc..)

    Attachment: Present (inaccessible)
    Hi

    For some reason I can't merge xml -file with umlauted characters to the pdf. All I get is a SAXParseException.

    [Fatal Error] :3:9: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.

    <code>

    import com.aspose.pdf.kit.*;
    import aspose.pdf.kit.*;

    public class ImportXML {

      static String path = "/tmp/";

        public static void main(String[] args) {
            path = args[3];
            try {
                  // Assign input and output PDF documents
                  Form form = new Form(args[2], path + args[1]);

                  // Select a xml file with contents of the form
                  String xmlFile = path + args[0];

                // Import the values from the XML to the output PDF form
                  form.importXml(xmlFile);

                  // save the output PDF document and release the object
                  form.close();
            }catch(Exception e) {
              System.out.println(e.toString());
            }
        }
    }


    </code>

    Any idea what is going wrong ?

    I'll include the xml file I tested with.

    This message was posted using Page2Forum (attachment) from Import and Export into XML - Aspose.Pdf.Kit for .NET and Java
     
  •  10-27-2008, 9:12 AM 149583 in reply to 149519

    Re: Problem with umlauted charactes (Ä,Ö etc..)

    Dear Kalliokorpi ,

    Thanks for considering Aspose.Pdf.Kit.

    Honestly, we didn't consider about the umlauted charactes before. Would you please provide the PDF template so as to reproduce the problem? Thank you very much.

     Best regards.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  10-28-2008, 1:42 AM 149728 in reply to 149583

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Attachment: Present (inaccessible)
    Hi

    Thanks for a quick reply. I'll attach a new xml and a pdf. Notice that if you remove umlauted characters merge works just fine, so I guess there's something wrong with the aspose class ?
     
  •  10-28-2008, 5:22 AM 149761 in reply to 149728

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Dear Kalliokorpi,

    Thanks for your sharing resources. This problem has been reproduced and reported as PDFKITJAVA-6305. We will fix it ASAP, and the ETA is about two weeks. Once finished, I wil inform in this thread.

    Best regards.

     


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  11-12-2008, 12:23 AM 152110 in reply to 149761

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Hello

    Any news about this issue ?
     
  •  11-12-2008, 8:41 AM 152186 in reply to 152110

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Dear Kalliokorpi,

    This bug has already been fixed. It will be included in the next coming release. Thanks for you patience.

    Best regards.


    Luke Fu
    Product Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  12-03-2008, 8:00 AM 155124 in reply to 152186

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Any idea when the fixed release is available to download ?
     
  •  12-03-2008, 8:28 AM 155129 in reply to 155124

    Re: Problem with umlauted charactes (&#196;,&#214; etc..)

    Hi,

    Please download the latest release (2.2.0.0) from here.

    Thanks,

    Felix Liu
    Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML