i can't execute a jrxml in my iReport because of the xml datasource it uses. It's a xml in ISO-8859-1 encoding, but in the first line of the xml it has only the xml version, not the encoding: Code:<?xml version="1.0"?> I make also a webapp, and here, there aren't any kind of problem to compile and execute the jrxml with the same datasource that in iReport, the code to execute this is: Code:[code] String resultFileName = getResultFileName(template); File createdFile = new File(getPdfsDir(), resultFileName); System.out.println(" creating output file ... "«»); DOMParser parser = new DOMParser(); InputSource in = new InputSource(); in.setEncoding("ISO-8859-1"«»); in.setByteStream(new FileInputStream(new File(getXmlInputDir(), inputFileName))); parser.parse(in); System.out.println(" correctly parsed: "«»); Document doc = parser.getDocument(); File file = new File(getTemplatesDir(), template); System.out.println(" TemplateFileName " + file.getAbsolutePath()); InputStream inputStream = new FileInputStream(file); jasperReport = JasperCompileManager.compileReport(inputStream); jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), new JRXmlDataSource(doc)); JRPdfExporter exporterPDF = new JRPdfExporter(); exporterPDF.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporterPDF.setParameter(JRExporterParameter.OUTPUT_FILE, createdFile); exporterPDF.exportReport(); How can i do it with iReport? I try changed the ireport.encoding property, via Edit/Personal Properties (or personal profiles, i have iReport in spanish, is Editar/Propiedades personales), but it doesn't seem to work. I can't change my xml datasource to add the encoding (it's client's responsability...) Thanks for your replies.