Closed GoogleCodeExporter closed 9 years ago
TBuffer.AsString returns the remaining part of the buffer which hasn't been
read yet. Thus it could return less than GetString(0, Source->Size()). But in
the ParseBegin event it should be the same of course as long as the buffer does
not start with a BOM. In this case GetString() would return some rubbish.
These thoughts let me assume, that you feed HtmlViewer with a unicode string or
UTF16LE file without BOM. I found and fixed an error in TBuffer.AsString()
regarding UTF16LE sources.
r343 fixes the error I found. Could you please test, whether it fixes your's as
well?
Original comment by OrphanCat
on 9 Dec 2012 at 6:33
Original comment by OrphanCat
on 25 Jan 2013 at 5:17
I close this issue after getting no answer in the past almost 4 months.
Most probably r343 fixed the issue.
Original comment by OrphanCat
on 30 Mar 2013 at 8:30
Original issue reported on code.google.com by
kafedji...@gmail.com
on 7 Dec 2012 at 8:06