xmltools icon indicating copy to clipboard operation
xmltools copied to clipboard

Check XML Syntax on Russian symbol И

Open zinpub opened this issue 6 years ago • 5 comments

If the text contains a character И(Windows-1251)(cod #200), even in the comments then an error is shown "--------------------------- XML Tools plugin

XML Parsing error at line 999:

Premature end of data in tag project line 3


ОК

"

zinpub avatar Oct 29 '19 09:10 zinpub

I'm guessing that your file is not in UTF-8 (that is a default character encoding for XML documents) and without specified used encoding in XML Prolog line (e.g. <?xml version="1.0" encoding="windows-1251"?> )...

Tichij avatar Oct 30 '19 07:10 Tichij

I'm guessing that your file is not in UTF-8 (that is a default character encoding for XML documents) and without specified used encoding in XML Prolog line (e.g. <?xml version="1.0" encoding="windows-1251"?> )...

изображение everything is present

zinpub avatar Oct 30 '19 07:10 zinpub

It looks like this is the problem with libxml2: it does not support windows-1251 encoding. Try to change encoding to ISO-8859-5, and the issue will disappear (at least to me). Not latest version (2.9.3: Nov 20 2015) of this library is now in use. Maybe in the latest version (2.9.7: Nov 02 2017) this is already resolved... I have the similar issues with some Lithuanian (windows-1257) letters. Unfortunately, I couldn't find the binaries (only source code is present) of the latest version...

Tichij avatar Oct 30 '19 08:10 Tichij

I will choose free time and try to compile ... Then I will write here

zinpub avatar Oct 30 '19 08:10 zinpub

No problem for me with plugin version 3.0.4.3 (Unicode 64-bit) using MSXML (expectedly). Couldn't test with a current version using libxml2.

mikekaganski avatar Nov 05 '20 07:11 mikekaganski