840 xml file error in quick viewer

Bugs and issues.
Post Reply
Message
Author
rjut
Posts: 14
Joined: 11.08.2018, 13:48

840 xml file error in quick viewer

#1 Post by rjut » 02.01.2021, 18:12

Sometimes the FC quick viewer gives an error for a file with an xml extension.
I have discovered 2 situations where the errors occurs:

1 - the xml file is encoded as UTF-16 / UCS-2. So 2 byte per character. But encoding was not defined in the header, it simply states: "<?xml version="1.0"?>"
I discovered this error when trying to view the "FreeCommander.fav.xml" file in the settings folder. This results in an error in the quick viewer:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'file:///D:/Muziek/New/FreeCommander.fav.xml'. Lin...

When I changed the header to "<?xml version="1.0" encoding="UCS-2" ?>" the error disappeared and the contents was displayed correctly (in xml markup format) in the viewer.
Note that this error occurred on the settings file of FC. When I started FC with default settings this error did NOT occur. The new fav.xml file is encoded UTF-8. Do not know why my fav.xml file is now encoded as UTF-16. Of course over the years have done many updates. I could solve this by adding encoding="UTF-8" to the header and saving as UTF-8 (using Notepad++).
PS The windows explorer pre viewer also showed "This file can't be previewed" as an error.

2 - a doc type definition file is defined in the header "<!DOCTYPE language SYSTEM "language.dtd">.
This results in an error in the quick viewer:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Access is denied. Error processing resource 'language.dtd'. Error processing resource 'file:///D:/Muziek/New/arduino-view ...
<!DOCTYPE language SYSTEM "language.dtd">

It looks like the viewer is trying to use the language.dtd file but cannot find it in the context of the FC environment.
PS The windows explorer was able to preview this file.
I was not able to solve this. Is it possible in this case that the viewer ignores the dtd file if not found?
FreeCommander XE 2020 Build 840 64-bit donor, Windows 10 Pro 64-bit 20H2

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests