1. encountered by Bug : bytes of UTF-8 sequence of bytes 3 Invalid
Bug Description: In tml when the Chinese characters appear in the file, sometimes the odd number will be error, sometimes even error. The version I'm using is Tapestry 5.3.8.
Bug Information:
Cause: The information may be Tapestry version issue, 5.3 This issue may occur with the above version.
Workaround: Manually modify the source content, the steps are as follows
1 tapestry 5.3.8 (download path: http:// tapestry.apache.org/download.html apache-tapestry-5.3.8-sources\tapestry-core\src\main\java\org\apache\tapestry5\internal\services " xmltokenstream.java "file
2 ): Replace with this line of code 348 Line
InputStreamReader rawreader = new InputStreamReader (Rawstream, "UTF-8");
3 ): Replace with this line of code 532 Line
printwriter writer = new PrintWriter (New OutputStreamWriter (Bos, "UTF-8"));
4 ): In the project src Create package under Package " org.apache.tapestry5.internal.services "and put the modified" Xmltokenstream.java "Put the file under the package!"
refer to "http://tapestrying.group.iteye.com/group/topic/33367"
Tapestry 5.3.8 Chinese garbled solution