verysimplexml icon indicating copy to clipboard operation
verysimplexml copied to clipboard

Error By TXmlVerySimple.Parse

Open KerwinZheung opened this issue 7 years ago • 4 comments

raised exception class EEncodingError with message 'No mapping for the Unicode character exists in the target multi-byte code page'.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

KerwinZheung avatar Jan 08 '19 09:01 KerwinZheung

Any files for reference?

Dennis1000 avatar Jan 10 '19 06:01 Dennis1000

var AStream: TFileStream; AXml: TXmlVerySimple; begin AXml := TXmlVerySimple.Create; AStream := TFileStream.Create('1.xml',fmOpenRead); AXml.LoadFromStream(AStream); end;

KerwinZheung avatar Jan 10 '19 08:01 KerwinZheung

1.txt

KerwinZheung avatar Jan 10 '19 08:01 KerwinZheung

Your file is in UCS-2 LE BOM format. try to encode it to UTF8

ulutepe avatar Nov 23 '19 12:11 ulutepe