Alessandro Bicocchi wrote: > We create an XML file in ASCII format with also special character like > �, but when we try to convert the file in PDF with fop-parser > (fop0.20.3-rc)
It is recommended to upgrade to the final 0.20.3 release. > the special character is not converted. > The error which is your parser give us is "Invalid XML character". > If you could help me solve the problem in some way, like a > software which convert from ASCII code to UTF-8 in the follow format > character &#x<hex value> (format which the parser fop accept correctly), The character you mentioned is in the ISO-8859-1 charset, so the problem could already disappear if you use this encoding in your XML declaration as already mentioned in the other answer you got. BTW because ASCII is a proper subset of UTF-8, there is no conversion needed. Converting non-ASCII characters to XML character references isn't a conversion to UTF-8 either. You could look at the recode utility, which can recode your files from ISO-8859-1 to UTF-8 and nearly everything else. You can find it in every Linux distribution, for Windows check out Cygwin http://www.cygwin.com or compile yourself from the source ftp://sunsite.cnlab-switch.ch/mirror/gnu/recode/recode-3.6.tar.gz or use you favorite GNU mirror. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
