Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error By TXmlVerySimple.Parse #4

Open
KerwinZheung opened this issue Jan 8, 2019 · 4 comments
Open

Error By TXmlVerySimple.Parse #4

KerwinZheung opened this issue Jan 8, 2019 · 4 comments

Comments

@KerwinZheung
Copy link

KerwinZheung commented Jan 8, 2019

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.

@Dennis1000
Copy link
Owner

Any files for reference?

@KerwinZheung
Copy link
Author

KerwinZheung commented Jan 10, 2019

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

@KerwinZheung
Copy link
Author

KerwinZheung commented Jan 10, 2019

1.txt

@ulutepe
Copy link

ulutepe commented Nov 23, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants