Hi Sandeep,

the platform you are running probalby defaults to UTF-8 (aka Unix).

Please check that the XML you are producing from velocity does have
an XML header with the character encoding properly set (must match
the encoding used for the velocity output writer).

As Daniel stated, you will need to ensure that the velocity reader,
the writer and the header in the generated XML-FOP file each cotains
the designated encoding directives. Note that you can change the
encoding within velocity (ISO-8859-7 will map to UTF-8, but not all
characters viceversa).

So, I believe you should be able to simply create your input file
with ISO-8859-7, use Velocity.getTemplate("<template file name>", "ISO-8859-7")
and then write the output in UTF-8 and have the proper first line
<?xml version="1.0" encoding="UTF-8" ?> in the FOP file.

Cheers,
:) Christoph Reck


Sandeep kamath wrote:
Hi Daniel,
          I am using the FOP tool to generate a PDF out of the velocity
output. I create a OutputStream object that I send alongwith the
Velocity output to the FOP tool to generate a PDF. But the PDF doesn't
show the greek characters. UTF-8 characters and UTF-8 encoding works
fine
but its just greek characters with ISO-8859-7 encoding that's causing an
issue.

Regards,
Sandeep

-----Original Message-----
From: Daniel Dekany [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 6:12 PM
To: Velocity Users List; Daniel Dekany
Cc: Sandeep kamath; Velocity Users List
Subject: Re: Encoding Problem


Tuesday, May 3, 2005, 2:14:47 PM, Daniel Dekany wrote:


Tuesday, May 3, 2005, 12:27:01 PM, Sandeep kamath wrote:


Hi Daniel,
Many Thanks. I did try ISO-8859-7 but it still wont work. I
get junk characters on the output stream.


I used Velocity.getTemplate("<template file name>", "ISO-8859-7");

The template file is in ISO-8859-7 encoding. It still wont work.

Maybe you have forgotten to set input.encoding=ISO-8859-7 in the velocity.properties.


Stupid me... I have just noticed you have "ISO-8859-7" in the
getTemplate call. Then maybe you are using not the same *output*
encoding than that the editor/browser you are using to check the output
assumes.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to