Java encoding problem utf-8 and iso-88591 when using FOP

Hi,

I have a webapplication that uses FOP to generate PDF documents. The XSL:FO files are often encoded with iso-8859-1 to support ex 骧? When running on windows there is no problem rendrering these characters correct. I tried installing the application on Linux with default encoding (reads this from the OS i think) set to utf-8. When I generate PDF documents from this machine, the characters comes out distorted. Why is this happening and what can i do to make them come out right in the pdf document. Can I do this whitout changing the default encoding the Java VM reads from the os.

Lars

[611 byte] By [gerlar2000a] at [2007-10-1 5:57:20]
# 1
Newer Linux versions tend to have utf8 as the default encoding But it can be influenced by setting LANG to something like en_US or ge_GE or hu_HU etc prior to launcihng your application.
BIJ001a at 2007-7-9 14:13:14 > top of Java-index,Administration Tools,Sun Connection...
# 2

hi, setting LANG didn't help. in my xslt i've got the following:<?xml version="1.0" encoding="ISO-8859-1"?>

...

<xsl:output version="1.0" method="xml" encoding="ISO-8859-1" indent="no"/>

i'm on ubuntu 6.10 edgy and i've set LANG to both no_NO and no_NO.ISO-8859-1, and run fop from the command line, but 骧?still come out in the pdf like its being processed with UTF-8. is there some kind of hard coded, overriding FOP (v 0.93) setting i don't know about?

thanks in advance for any help available =)

Nick_Humphreya at 2007-7-9 14:13:14 > top of Java-index,Administration Tools,Sun Connection...
# 3
i love it when i answer my own questions =)my solution was just to change all instances of iso-8859-1 to UTF-8. crazy huh? i think it is a linux thing. on windows it needs to be iso-8859-1 but on linux, UTF-8. a little annoying actually...
Nick_Humphreya at 2007-7-9 14:13:14 > top of Java-index,Administration Tools,Sun Connection...