Cyrillic Characters not shown in pdf file when xsl is parsed part 2:
843834Feb 7 2003 — edited Feb 10 2003I am using Fop to create a pdf file from an XSL file, an XML file and a ApplicationResources.properties file.
The XML file is populated by a Java class, where the information is taken from a Russian Database. This XML file is them used to populate the XSL file.
The ApplicationResources.properties file, is in windows 1251 format, as we converted it using NativeToAscii converter.
I downloaded a cyrillic ttf file, and created a metrics file, according to the Fop website. And I had Russian appearing on my PDF from the database (not ApplicationResources.properties file though). However, the information which we were retrieving from the database would not display on the jsp pages which are part of the same application.
To fix this, we changed our database driver from a ODBC-JDBC driver, to an oracle thin type 4 driver.
Since this happened, my cyrillic characters no longer appear on my PDF file.
I know that the information from the database comes back in windows 1251 format, so I tried to put the
<?xml version="1.0" encoding="windows-1251"?>
and
<?xml version="1.0" encoding="Cp1251"?>
but when I do this, I get the following error in my log file:
L2|14:14:58:433|ExecuteThread-9|PDFService.generatePDF: class com.petrotechnics.skyobma.service.SkyobmaServiceException Exception :javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The encoding "Cp1251" is not supported.
or the windows-1251 is not supported.
I do not know what to do at all, I am really struggling and was wondering if anyone had any idea about where I can go from here, or even if someone can just tell me I am fighting a loosing battle I would be happy.
Yours Truly Hopefully,
Gillian Daniel