Invalid XML export

You found an error in the program ? Report it here
Post Reply
tnys
Posts: 1
Joined: 2010-03-27 20:51:12

Invalid XML export

Post by tnys »

Hi

I am the author of Movies for iPhone/iPad and had a few customers having troubles importing the XML generated by ANT. I have added a sample export from a French customer (http://www.netwalkapps.com/ant.xml) which claims to be encoded in UTF-8, though in reality it is partly Windows-1252, though not completely as Internet Explorer (a pretty decent XML parser) is unable to parse this file (either when it states UTF-8 encoding, or when I manually correct it to Windows-1252).

Could you please have a look at this, as this prevents your customers to export their library and import it into Movies for iPhone/iPad.

Thanks for your support,

Tom
http://www.netwalkapps.com
antp
Site Admin
Posts: 9664
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,
AMC does not support Unicode.
It only uses locale windows character set.
There is a field where the user can specify the character set, but he should put the character set of his windows, not any one (so for sure not UTF-8).
I made that long time ago, before I knew how to handle that properly. I should put that encoding automatically depending on what is actually used.

When I replace the encoding by windows-1252, IE8 can load it.
Firefox does not like it because of a 0x19 byte replacing a quote. This is a bug somewhere in a script and/or in the program, I remember that this particular problem has been reported by someone recently for the script "film.tv.it". Here I guess the problem was with Allociné script, if it only happens for that movie it can be fixed by replacing special quotes (like ’) by normal ones (like ')
jeboss
Posts: 1
Joined: 2010-03-30 08:01:26

Post by jeboss »

Hey,

I've exactly ran in the issue. I did bought Movies for iPhone and wanted to export all my Ant catalog to that application, and then have a portable version of the catalog.

My library is mainly in French. And effectively when trying to parse the exprted XML is fails. After some investigation it reaveals that my Ant export contains Device control charcater which are not properly handel by parser.

To do a simple test, create a new lib in Ant, add a new title ex.: "Alien", get data from allociné via script and then export, you'll see that some of the device control chars are present in export file. Trying to view this in IE causes issue.

Solution would be to create a little scipt to replace those hidden char by something else.

I'm still investigating this.
antp
Site Admin
Posts: 9664
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

With current script it works fine for Alien for me.
But with an old script I get garbage in some field, one of these include an invalid euro symbol.
Post Reply