You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Olivier Crameri <ol...@epfl.ch> on 2004/04/01 19:14:14 UTC

Accentuated characters

Hi everyone,

I am writing a java software which outputs pdfs via FOP and an xslt 
stylesheet. Basically the same functionality and the same code as 
showed in the ExampleObj2PDF.java  tutorial.

I am getting some troubles with accentuated letters. The accentuated 
characters that are present in the xslt stylesheet are generated 
perfectly in the pdfs. However, accentuated letters generated as sax 
events output garbage.

Here is an example of non working accents:

handler.element("accents", "ààà ééé");

I don't understand why it doesn't work. I already double-checked that 
my java class is well encoded in utf-8.

I would really appreciate any help.

Thanks

Olivier

Re: Accentuated characters

Posted by Chris Bowditch <bo...@hotmail.com>.
Christian Geisert wrote:

> Olivier Crameri wrote:

<snip/>

>> Here is an example of non working accents:
>>
>> handler.element("accents", "ààà ééé");
>>
>> I don't understand why it doesn't work. I already double-checked that 
>> my java class is well encoded in utf-8.
> 
> 
> This might be the problem. The encoding of the java source must match 
> your file.encoding (See System.getProperties())

Yes your java compiler will need to be told what encoding your source files 
are in, if they differ from the platform default.

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Accentuated characters

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Olivier Crameri wrote:
> Hi everyone,
> 
> I am writing a java software which outputs pdfs via FOP and an xslt 
> stylesheet. Basically the same functionality and the same code as showed 
> in the ExampleObj2PDF.java tutorial.
> 
> I am getting some troubles with accentuated letters. The accentuated 
> characters that are present in the xslt stylesheet are generated 
> perfectly in the pdfs. However, accentuated letters generated as sax 
> events output garbage.
> 
> Here is an example of non working accents:
> 
> handler.element("accents", "ààà ééé");
> 
> I don't understand why it doesn't work. I already double-checked that my 
> java class is well encoded in utf-8.

This might be the problem. The encoding of the java source must match 
your file.encoding (See System.getProperties())

-- 
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org