INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Clean File Properties  (Read 1163 times)

Polonio

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 324
Clean File Properties
« 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...
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re:Clean File Properties
« Reply #1 on: June 01, 2004, 05:53:23 pm »

Is there a safe way to XML-ify those characters?
Logged
Matt Ashland, JRiver Media Center

Polonio

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 324
Re:Clean File Properties
« Reply #2 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...)
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re:Clean File Properties
« Reply #3 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
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up