You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Denis Delangle (JIRA)" <ji...@apache.org> on 2013/02/26 15:42:15 UTC
[jira] [Commented] (TAP5-1741) Parsing template which contains
Chinese (Maybe other double bytes) words throws
MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8 sequence.
[ https://issues.apache.org/jira/browse/TAP5-1741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587168#comment-13587168 ]
Denis Delangle commented on TAP5-1741:
--------------------------------------
The partial modification is a source of regression for us. We used french accents that were correctly managed in 5.3 (transformed from UTF-8 to Latin1 back to UTF-8).
Now, we get errors in 5.4-alpha-2 as our templates are transformed from UTF-8 to Latin1, and then read as if they were in UTF-8. The workaround we found for the moment is to set JVM file encoding to UTF-8 ( -Dfile.encoding=UTF8)
> Parsing template which contains Chinese (Maybe other double bytes) words throws MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8 sequence.
> --------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-1741
> URL: https://issues.apache.org/jira/browse/TAP5-1741
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3
> Reporter: DH
> Assignee: Igor Drobiazko
> Priority: Blocker
> Attachments: charset.diff, Index.tml
>
>
> After upgrading to 5.3-rc-1, all my templates are not parsed successfully. The error message points to the line where there are Chinese words.
> Stack Trace below:
> Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 3 of 3-byte UTF-8 sequence.
> at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
> at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:432)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(XMLEntityScanner.java:1416)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2792)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> at org.apache.tapestry5.internal.services.XMLTokenStream.parse(XMLTokenStream.java:306)
> at org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:163)
> ... 85 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira