lbellonda / qxmledit

QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
http://qxmledit.org
Other
160 stars 46 forks source link

How to split a file that uses encoding "ISO-8859-1" #94

Open IsraMasterOne opened 4 months ago

IsraMasterOne commented 4 months ago

U have an XML file that uses "ISO-8859-1" encoding. When I try to use the tool says that wrong encodec for the obvious reason. How to configure so the split tool considers that the file its in a different encoding?

lbellonda commented 4 months ago

Hello, the split module tries to get the source file encoding from the file itself and writes the output in the same encoding. You need to place an XML declaration at the beginning of the file: <?xml version="1.0" encoding="ISO-8859-1"?>