[Xerte-dev] Re: Invalid character breaking data.xml parsing (and therefore export)
Tom Reijnders
reijnders at tor.nl
Tue Nov 6 11:56:31 GMT 2012
No, the lne endings are not DOS.... they seem to be DOS on Linux because of the ˆM characters, but they are MacOS line-endings.
Really, whoever thought of this should be shot....
Linux/Unix uses \n (or ASCII 10, or ˆJ, or newline)
MacOS uses \r (or ASCII 13, or ˆM, or return)
and DOS uses \n\r (or ASCII 10, followed by ASCII 13, return)
ˆA is ASCII 1, not a space in Windows....
Tom
David Goodwin <david at palepurple.co.uk> schreef:
>
>On 6 Nov 2012, at 11:43, Pat Lockley <patrick.lockley at googlemail.com>
>wrote:
>
>> is ^A not whitespace on windows?
>>
>
>I've no idea. I'm not a Windows person.
>
>I know the data.xml is encoded/saved with DOS style line endings.
>
>
>Should XOT try and validate whatever XML is passed into it when the
>editor calls save on it and reject (?) it if invalid? Alternatively I
>suppose I could run iconv (or similar) over the xml file and try to
>remove any invalid characters?
>
>What PHP file is called when the flash editor asks to save?
>
>
>David.
>
>Pale Purple Ltd. (Company No: 5580814)
>'Web and Mobile Application Development for Business'
>
>http://www.palepurple.co.uk
>Office: 0845 0046746 Mobile: 07792380669
>
>Follow us on Twitter: @PalePurpleLtd
>
>This message and any attachment are intended solely for the addressee
>and may contain confidential information. If you have received this
>message in error, please send it back to me, and immediately delete it.
>Please do not use, copy or disclose the information contained in this
>message or in any attachment. Any views or opinions expressed by the
>author of this email do not necessarily reflect the views of the
>University of Nottingham.
>
>This message has been checked for viruses but the contents of an
>attachment
>may still contain software viruses which could damage your computer
>system:
>you are advised to perform your own checks. Email communications with
>the
>University of Nottingham may be monitored as permitted by UK
>legislation.
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Xerte-dev mailing list
>Xerte-dev at lists.nottingham.ac.uk
>http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>This message and any attachment are intended solely for the addressee
>and may contain confidential information. If you have received this
>message in error, please send it back to me, and immediately delete it.
>Please do not use, copy or disclose the information contained in this
>message or in any attachment. Any views or opinions expressed by the
>author of this email do not necessarily reflect the views of the
>University of Nottingham.
>
>This message has been checked for viruses but the contents of an
>attachment
>may still contain software viruses which could damage your computer
>system:
>you are advised to perform your own checks. Email communications with
>the
>University of Nottingham may be monitored as permitted by UK
>legislation.
--
Verzonden van mijn Android telefoon met K-9 Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121106/6dc67c1e/attachment.html>
More information about the Xerte-dev
mailing list