You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Kuckartz <A....@ping.de> on 2004/02/26 12:48:13 UTC
UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
I try to save an edited page but get this:
"RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 2 of
3-byte UTF-8 sequence."
What is that?
I am using 1.2RC2 on Windows 2000 with MSIE 6.0
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
Posted by Andreas Kuckartz <A....@ping.de>.
> as a workaround, you can use numerical xml entities:
>
> http://www.unicode.org/charts/case/chart_Latin.html
>
> such as �E4; for ä (a umlaut)
I tried that but:
"SAXParseException: The character reference must end with the ';'"
Even an additional ; at the end does not help.
Strange. I will move over to Linux and try there.
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Andreas Kuckartz wrote:
> Well, now I have corrected my error - but the problem persists.
>
> Using other umlaut-sequences within the text using the One Form Editor I get
> this:
> "RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 1 of
> 1-byte UTF-8 sequence."
> "RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 2 of
> 4-byte UTF-8 sequence."
>
> If I use ü instead of ü I get another error:
> "The entity 'uuml' was referenced, but not declared"
>
> How do others use Lenya with German text?!
i am currently tracing an issue that manifested itself with the switch
to 2.1.4 (different encodings). i am not yet sure where things changed
w.r.t encoding in cocoon.
as a workaround, you can use numerical xml entities:
http://www.unicode.org/charts/case/chart_Latin.html
such as �E4; for ä (a umlaut)
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
Posted by Andreas Kuckartz <A....@ping.de>.
Well, now I have corrected my error - but the problem persists.
Using other umlaut-sequences within the text using the One Form Editor I get
this:
"RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 1 of
1-byte UTF-8 sequence."
"RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 2 of
4-byte UTF-8 sequence."
If I use ü instead of ü I get another error:
"The entity 'uuml' was referenced, but not declared"
How do others use Lenya with German text?!
I noticed that according to Notepad the xsl files and the document files are in
ANSI format and not in UTF-8.
Cheers,
Andreas
---
I wrote:
> The problem is a result of using Umlauts äöüÄÖÜß and an incorrect encoding. It
> is not a result of a Lenya bug.
> > I try to save an edited page but get this:
> > "RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 2
of
> > 3-byte UTF-8 sequence."
> >
> > What is that?
> >
> > I am using 1.2RC2 on Windows 2000 with MSIE 6.0
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
Posted by Andreas Kuckartz <A....@ping.de>.
The problem is a result of using Umlauts äöüÄÖÜß and an incorrect encoding. It
is not a result of a Lenya bug.
Andreas
----- Original Message -----
From: "Andreas Kuckartz" <A....@ping.de>
To: "Lenya Developers List" <le...@cocoon.apache.org>
Sent: Thursday, February 26, 2004 12:48 PM
Subject: UTFDataFormatException: Invalid byte 2 of 3-byte UTF-8 sequence
> I try to save an edited page but get this:
> "RELAX NG Validation failed: java.io.UTFDataFormatException: Invalid byte 2 of
> 3-byte UTF-8 sequence."
>
> What is that?
>
> I am using 1.2RC2 on Windows 2000 with MSIE 6.0
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org