There is a tool in java SDK called native2ascii which allows you to convert
properties files to proper format from UTF8. I've used it succesfully with
properties files written in russian and polish.
You can use ant to convert properties files by putting following target in
ant's build.xml file:

<target description="convert" name="properties">
   <native2ascii encoding="UTF8" src="${resourceDir}" dest="${classesDir}"
includes="**/*.properties"/>
</target>

then it is enough to call this target during compilation.

----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Mark Goking" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 2:49 PM
Subject: Re: [iText-questions] Xml concern


> You can't have UTF-8 in property files. The encoding is ISO-8859-1 and for
> characters outside the range the notation \uxxxx is used just like in the
> java source files.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Mark Goking" <[EMAIL PROTECTED]>
> To: "Bruno" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 16, 2003 17:45
> Subject: [iText-questions] Xml concern
>
>
> >
> > My ResourceBundle class uses a UTF-8 saved property file to retrieve
> > the values and write them to the xml file also saved as utf-8
> >
> > This is my line code to create the xml file
> >
> > write = new PrintWriter(new OutputStreamWriter(new
> > FileOutputStream(xmlFile), "UTF-8"));
> >
> >
> > Now, when I checked the generated xml file, it seems that some
> > characters have become garbled and not seen as the supposed unicode
> > symbol representation
> >
> > Do you think I should use another class to write a utf-8 saved xml
> > file before converting it to pdf? Could you please give an example?
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: VM Ware
> > With VMware you can run multiple operating systems on a single machine.
> > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
> same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to