Markus,
You ask two questions there:
1. Are there Unicode PDFs? The answer to that one is yes.
2. Can FOP create them? This I do not know and will leave to someone else to
answer.
The point is that if you force ISO-8859-1 encoding, it wont ever be able to.
I've been working with FOP for only a week or two and I can't find a working
archive of this mailing list, so I don't know if this has been discussed
already. All I can say is that for a tool like FOP to reach it's full
potential, it must support more than one encoding. I'd have thought this
would be possible by adding an encoding property, to be supplied to the
getBytes method where required.
I have an application to use FOP where unicode support is required in the
PDF output. We want to eventually be able to produce the same reports in
many different languages, including Asian and Arabic languages.
As you know, ISO-8859-1 only supports Latin characters
-----Original Message-----
From: Markus Bernhardt
To: [EMAIL PROTECTED]
Sent: 23/07/2001 19:59
Subject: Re: Bug fix for non ASCII environments
Hi !
Darren Munt wrote:
> Forgive me if I show my ignorance of FOP internals, but isn't that
going to
> convert all text read by getBytes into ISO-8859-1. If that's the case,
there
> might be a few complaints from Unicode users (such as myself).
We are using FOP since 0.12 and try now to port our
stuff to a EBCDIC based system, but I'm quite new to the FOP source
code.
As I understand you, you have unicode input files, or ?
I'm interested at the output.
At the moment
string.getBytes()
is used to convert java.lang.Strings to bytes to write them
over a ByteArrayOutputStream into the pdf file.
Problem here is, that the default encoding will be used
by java to convert the internal 2 byte character representation
to 1 byte output. On almost every system under the sun
the standard java encoding is ISO-8859-1.
AFAIK getBytes() is NEVER unicode safe.
AFAI can see there should be NO changes in the behavior
of FOP on any ASCII based system, because java already
uses this encoding scheme.
Are there unicode PDF files ?
Can FOP create unicode PDF files ?
>
>
> -----Original Message-----
> From: Markus Bernhardt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 23 July 2001 6:26
> To: [EMAIL PROTECTED]
> Subject: Bug fix for non ASCII environments
>
> Hi !
>
> Finally we have the actual FOP running under OS/390.
>
> We simply replaced all occurencies of
>
> string.getBytes()
>
> with:
>
> try {
> string.getBytes("ISO-8859-1");
> } catch (UnsupportedEncodingException) {}
>
> Is there any chance this fix could go into the official FOP package.
> It will took only about 30 minutes to inculde it.
>
> - markus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
<<Card for Markus Bernhardt>> <<ATT00181.txt>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]