<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The xml can still be valid and hold non UTF data, right? That seems to be the problem, and then Flash chokes on it.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Pat L (pgogy)<br><b>Sent:</b> 12 May 2014 14:58<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: FW: Further Xerte Data Loss<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>i thought there was a valid XML test before saving?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Mon, May 12, 2014 at 2:36 PM, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>> wrote:<o:p></o:p></p><p class=MsoNormal>I asked if I could share the files, but not had a response: I'm sure it's OK, but I need to check,<o:p></o:p></p><div><p class=MsoNormal><br>-----Original Message-----<br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of David Goodwin<o:p></o:p></p></div><div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Sent: 12 May 2014 14:35<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: FW: Further Xerte Data Loss<br><br>Can you attach / share the data.xml file somehow?<br><br>I know of a PHP library which is quite good at cleaning up such stuff ....<br><br>David.<br><br><br>On 12/05/14 13:23, Julian Tenney wrote:<br>> This looks suspicious: that's not escaping, right? That looks to me<br>> like errant characters creeping in from somewhere? Paste from word, etc?<br>><br>> -----Original Message-----<br>> From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of David<br>> Goodwin<br>> Sent: 12 May 2014 12:53<br>> To: For Xerte technical developers<br>> Subject: [Xerte-dev] Re: FW: Further Xerte Data Loss<br>><br>> On 12/05/14 12:41, Julian Tenney wrote:<br>><br>>  > What beats me is why the file should break halfway through a tag name.<br>><br>> What I've seen is that the PHP (or whatever) can't read the XML file<br>> as it has the wrong encoding specified, or it just somehow contains<br>> characters that are invalid.<br>><br>> see e.g.<br>><br>> <a href="http://stackoverflow.com/questions/14463573/php-simplexml-load-file-in" target="_blank">http://stackoverflow.com/questions/14463573/php-simplexml-load-file-in</a><br>> valid-character-error<br>><br>> <a href="https://chrismckee.co.uk/saving-user-content-to-xml-error-contains-non" target="_blank">https://chrismckee.co.uk/saving-user-content-to-xml-error-contains-non</a><br>> e-utf-8-content-aka-how-to-remove-invalid-characters-in-utf-8/<br>><br>> David.<br>><br>>  ><br>><br>>  > -----Original Message-----<br>><br>>  > From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>> <mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>><br>><br>>  > [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of<br>> David<br>><br>>  > Goodwin<br>><br>>  > Sent: 12 May 2014 12:37<br>><br>>  > To: For Xerte technical developers<br>><br>>  > Subject: [Xerte-dev] Re: FW: Further Xerte Data Loss<br>><br>>  ><br>><br>>  > Is it possible that it's a unicode ` character?<br>><br>>  ><br>><br>>  ><br>><br>>  > I've seen a number of UTF-8 related issues with the data.xml etc files.<br>><br>>  ><br>><br>>  > David.<br>><br>>  ><br>><br>> --<br>><br>> Pale Purple Ltd<br>><br>> PHP Web application development and support<br>><br>> <a href="http://www.palepurple.co.uk" target="_blank">http://www.palepurple.co.uk</a><br>><br>> @PalePurpleLtd<br>><br>> 07792 380669 / 0845 0046746<br>><br>> _______________________________________________<br>><br>> Xerte-dev mailing list<br>><br>> <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>> <mailto:<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a>><br>><br>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>><br>><br>><br>> _______________________________________________<br>> Xerte-dev mailing list<br>> <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>><br><br>--<br>Pale Purple Ltd<br><br>PHP Web application development and support<br><br><a href="http://www.palepurple.co.uk" target="_blank">http://www.palepurple.co.uk</a><br>@PalePurpleLtd<br>07792 380669 / 0845 0046746<br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>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.<br><br>This message has been checked for viruses but the contents of an attachment<br>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.<br><br><br><br><o:p></o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>