INTERACT FORUM

More => Old Versions => Media Center 11 (Development Ended) => Topic started by: Polonio on June 01, 2004, 05:27:17 pm

Title: Clean File Properties
Post by: Polonio on June 01, 2004, 05:27:17 pm

I had problems with the XML generated with MC. It contained illegal characters, so I was not able to open it or to import it to another application...

Finally, I found 2 files (of 6500) were causing the problem. The lyrics of these songs contained "weird" characters (CHAR 06, and CHAR 12).

As you can guess, it wasn't easy to me to find out these 2 files.

Now, I have 2 suggestions:

1.- MC has to prevent to write these (and other) illegal characters into the XML generated files.

2.- "Clean File Properties" could have an option to trim or replace illegal charactes from any field.

I guess an illigal character is any thing lower than 32 but carry return and line feed...
Title: Re:Clean File Properties
Post by: Matt on June 01, 2004, 05:53:23 pm
Is there a safe way to XML-ify those characters?
Title: Re:Clean File Properties
Post by: Polonio on June 06, 2004, 03:32:17 pm
Is there a safe way to XML-ify those characters?

I just did a liitle investigation, and yes, there is a way. Any ASCII character can be XML-ied using this syntax: &#nn; where nn is the ascii value...

So, replaicing the chars that where causing me trouble by  and  the xml generated would be fine..

It would be fantastic you fix that.

However, it would be even better you develop a way to clean that wierds character from the tags...

The lyrics fields that cause me trouble were filled by a sparta plug-in (a great plug-in, by the way...)
Title: Re:Clean File Properties
Post by: KingSparta on June 06, 2004, 05:23:43 pm
Quote
The lyrics fields that cause me trouble were filled by a sparta plug-in (a great plug-in, by the way...)

Blush

As a matter of fact My lyrics Server Has Over 301,513 Lyrics As Of Today, Way More than any Lyrics Site On The Internet.

most have less that 40,000, a few have more than 100,000 only one has more than 200,000