[Xerte-dev] Re: sanpit example of non standard chars

Smith, John J.J.Smith at gcu.ac.uk
Thu Jul 10 16:42:36 BST 2014


Yes I suspect it is the PHP function that creates the XML object in play/preview and most likely export too that doesn't like that character

There is a check in save.php that removes either char(0) or char(1) [can't remember off the top of my head which] because we had an example a yaer or so ago where that character made its way into the XML and then caused problems. I thing there must be a whole load of characters that are possible to enter but that PHP XML doesn't like...

Regards,

John Smith | Learning Technologist
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University
Cowcaddens Road | Glasgow | G4 0BA

Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible.
________________________________________
From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell [ronm at mitchellmedia.co.uk]
Sent: 10 July 2014 16:27
To: 'For Xerte technical developers'
Subject: [Xerte-dev] sanpit example of non standard chars

Hi all
thought I should share this example of what was a non playing if not corrupted LO from the sandpit…

The helpdesk had a report from a user that his LO wouldn't export and now wouldn't play.
I checked the export first and sure enough it wouldn't export and then I verified that it wouldn't play either even though all looked ok in the editor.
So then I looked at the xml expecting it to be corrupt like we've had with other examples previously but in this case both preview.xml and data.xml were still complete. However I noticed two oddities shown in the following screenshots:

1. US instead of fingerprint line 121
[cid:image005.jpg at 01CF9C5B.CD149970]

2. what should have neen an apostrophe line 116
[cid:image006.jpg at 01CF9C5B.CD149970]
I've attached a copy of the xml so hope this gets through.

Questions I asked along with answers:


1. Did you copy and paste text in from Word or another external source?

I did copy, but from Word and PowerPoint into Notepad so I could remove the formatting, then pasted into the LO.



2. Did you re-import these LO's at any point?

No



3. Are you ok with the dev team looking at a copy of the xml from your LO to try to identify the exact cause and future prevention?

Yes



I wonder if this would have ended up with a completely broken LO rather than just one that wouldn't play or export and I should add that after removing the UN directly from the xml and adding an apostrophe via the editor the LO plays and exports again.



HTH

Ron



Glasgow Caledonian University is a registered Scottish charity, number SC021474



More information about the Xerte-dev mailing list