Damian Golda
Posts: 1
Nickname: dgolda
Registered: Dec, 2010
|
|
XmlReporter encoding problem
|
Posted: Dec 15, 2010 9:32 AM
|
|
Advertisement
|
XmlReporter creates XML files declared as UTF-8: line 290:
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + withCDATA
but writes characters using default system encoding (in my case CP1250).
So I've got: "Invalid byte 1 of 1-byte UTF-8 sequence" while parsing xmls.
I suppose, the reason is in line 73:
val out = new PrintWriter(filespec)
According to JavaDoc of PrintWriter: "which will encode characters using the default charset"
So I suggest it should be:
val out = new PrintWriter(filespec, "UTF-8")
-- Damian
|
|