Samuel Cheung wrote:
I get the following "Invalid byte 2 of 3-byte UTF-8 sequence." error
...
I narrow down the problem to the follow line, the value of the replace
target contains Spanish character":
<replace file="${buildname}.txt" token="TITLE: Messaging" value="PVC-TITLE:
Mensajerķa" />
This is an XML character encoding problem. Ant build files are
XML documents. XML parsers check the XML declaration for the
character encoding of the file. I suspect your build file
doesn't have an XML declaration at the beginning, or it has
an XML declaration without an encoding declaration. In both
cases the parser would assume the file is UTF-8 encoded. OTOH
it seems your actual encoding is ISO-8859-1.
Possible solutions: either add an XML declaration which declares
the correct encoding, probably
<?xml version="1.0" encoding="ISO-8859-1"?>
or tell your editor to save the file UTF-8 encoded.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]