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 se...@paneurolife.lu on 2003/06/24 11:25:41 UTC

UTF-8 problem

Hello,

I have a proble with my .fo file:

When i use Fop, i have this message :

Invalid byte 2 of 3-byte UTF-8 sequence.

This is a piece of my code:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root  xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set><fo:simple-page-master master-name="paysage"
page-height="21cm" page-width="29.7cm" margin-top="1cm" margin-bottom="1cm"
margin-left="1cm" margin-right="1cm"><fo:region-body
/></fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="paysage">
<fo:flow flow-name="xsl-region-body">
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)" />
<fo:table-body>
      <fo:table-row><fo:table-cell background-color="#Adb5d1"
number-columns-spanned="15"><fo:block text-align="left">FONDS MONETAIRES
</fo:block></fo:table-cell>...................................................................

Have you an idea?

Thanks a lot

Sébastien






The contents of this E-mail are confidential and may contain privileged information to the sole intended recipient at the E-mail address to which it has been addressed. It may not be disclosed to our used by anyone other than the addressee, nor may it be copied or forwarded in any way without the consent of the sender.
The sender hereby make no representation as to the accuracy, completeness for a particular purpose of the information provided in this E-mail. No binding commitment from the sender may be inferred by means of E-mail communications.
Please note that the sender accepts any responsibility for viruses and it is your responsibility to scan the E-mail and attachments (if any). 
If received in error, please reply by mail to the sender or contact the sender by phone (+352) 45 67 301, and then delete it from your system.


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


Re: UTF-8 problem

Posted by Jeremias Maerki <de...@greenmail.ch>.
Rather an XML question than anything related to FOP. You're doing
something wrong generating the XSL-FO file. You're probably writing the
file in a normal 8-bit encoding (for example ISO-8859-1) but declaring
UTF-8 as the encoding. This results in this error message if an illegal
combination of characters (from the UTF-8 point of view) is encountered. 

If you don't manage to fix it you will need to tell us how exactly
you're generating the XSL-FO file? If you're using a text editor to
manually edit the XSL-FO file you're probably better off declaring:
<?xml version="1.0" encoding="ISO-8859-1"?>


On 24.06.2003 11:25:41 sebastien.mielot wrote:
> I have a proble with my .fo file:
> 
> When i use Fop, i have this message :
> 
> Invalid byte 2 of 3-byte UTF-8 sequence.
> Have you an idea?
> 
> Thanks a lot


Jeremias Maerki


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