speedata / publisher

speedata Publisher - a professional database Publishing system
https://www.speedata.de/
GNU Affero General Public License v3.0
302 stars 36 forks source link

publisher.status broken UTF-8 encoding #65

Closed pgundlach closed 9 years ago

pgundlach commented 9 years ago

The file pubisher.status is an XML file that gets written by spinit.lua function exit() and includes (error) messages. These messages can be in a non-UTF8 encoding. The encoding should be fixed, as reading the XML file generates error messages. This is especially bad in the server mode, which relies on the publisher.status file for obtaining the status of a specific run.

pgundlach commented 9 years ago

A test file:

<Layout 
  xmlns="urn:speedata.de:2009/publisher/en" 
  xmlns:sd="urn:speedata:2009/publisher/functions/en">

  <Record element="data">
    <Message select="'aaa&#xFFFE;aaaa'"></Message>
  </Record>
</Layout>