Page 2 of 2

Re: "reference to invalid character number at line 6"

Posted: Mon Aug 29, 2011 3:44 pm
by bgravato
Yes, there shouldn't be any problems with non-alphanumeric characters in more recent versions of audacity, nonetheless I always prefer to stick to the basic alphanumeric characters for the sake of compatibility with all systems... I often have to share files between different OSes (Windows, Mac and Linux) and non-standard characters in filenames can be a nightmare...

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 6:39 am
by shortyzpapa815
I'm having the same problem with two seperate (.aup) files. "reference to invalid character number at line 7" and "reference to invalid character number at line 10". When I drag the project file into TextEdit, all that comes up is an Audacity icon - not the code. What am I doing wrong?

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 10:31 am
by steve
shortyzpapa815 wrote:When I drag the project file into TextEdit, all that comes up is an Audacity icon - not the code. What am I doing wrong?
Open the AUP file using the File Open menu option.

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 4:31 pm
by shortyzpapa815
This is the first one:

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE project PUBLIC "-//audacityproject-1.3.0//DTD//EN" "http://audacityteam.org/xml/audacityproject-1.3.0.dtd" >
<project xmlns="http://audacityteam.org/xml/" projname="untitled 2 : 10 Healing Ceremony 1_data" version="1.3.0" audacityversion="1.3.12-beta" sel0="0.0000000000" sel1="0.0000000000" vpos="0" h="0.0000000000" zoom="1.3373143726" rate="44100">
<tags>
<tag name="id3v2" value="0"/>
<tag name="GENRE" value="Noise"/>
<tag name="ARTIST" value="Musicians of Malaysia"/>
<tag name="TRACKNUMBER" value="2"/>
<tag name="TITLE" value="Titel 02"/>
<tag name="Full Name" value="Healing Ceremony&#x0001;"/>
<tag name="ALBUM" value="Dream Songs and Healing Sounds in the Rainforests of Malaysia"/>
</tags>
<wavetrack name="untitled 2 1" channel="0" linked="1" mute="0" solo="0" height="150" minimized="0" rate="44100" gain="0.501187" pan="0">
<waveclip offset="0.00000000">
<sequence maxsamples="262144" sampleformat="262159" numsamples="29106084">
<waveblock start="0">
<simpleblockfile filename="e00042bf.au" len="262144" min="-0.777256" max="0.748909" rms="0.419688"/>
</waveblock>
<waveblock start="262144">
<simpleblockfile filename="e0004183.au" len="262144" min="-0.742214" max="0.736741" rms="0.398895"/>
</waveblock>
<waveblock start="524288">
<simpleblockfile filename="e0003ce7.au" len="262144" min="-0.804666" max="0.812721" rms="0.426377"/>
</waveblock>
<waveblock start="786432">
<simpleblockfile filename="e0003ab7.au" len="262144" min="-0.775908" max="0.768544" rms="0.429719"/>

And this the second:

<?xml version="1.0" standalone="no" ?>
<!DOCTYPE project PUBLIC "-//audacityproject-1.3.0//DTD//EN" "http://audacityteam.org/xml/audacityproject-1.3.0.dtd" >
<project xmlns="http://audacityteam.org/xml/" projname="usa live performance #1 23-11-93 1:18 Healing Ceremony 1_data" version="1.3.0" audacityversion="1.3.12-beta" sel0="102.5500000000" sel1="102.5500000000" vpos="0" h="0.0000000000" zoom="2.4768401656" rate="44100">
<tags>
<tag name="id3v2" value="1"/>
<tag name="ARTIST" value="Musicians of Malaysia"/>
<tag name="Full Name" value="Healing Ceremony&#x0003;"/>
<tag name="ALBUM" value="Dream Songs and Healing Sounds in the Rainforests of Malaysia"/>
</tags>
<wavetrack name="usa live performance #1 23-11-93 1" channel="0" linked="1" mute="0" solo="0" height="150" minimized="0" rate="44100" gain="0.794328" pan="0">
<waveclip offset="0.00000000">
<sequence maxsamples="262144" sampleformat="262159" numsamples="17104896">
<waveblock start="0">
<simpleblockfile filename="e0001c34.au" len="262144" min="-0.489205" max="0.421064" rms="0.111405"/>
</waveblock>
<waveblock start="262144">
<simpleblockfile filename="e00010bf.au" len="262144" min="-0.420284" max="0.348282" rms="0.101315"/>
</waveblock>

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 4:49 pm
by Gale Andrews
So in the first project, please remove "&#x0001;" from <tag name="Full Name" value="Healing Ceremony&#x0001;"/> so that it reads:

Code: Select all

<tag name="Full Name" value="Healing Ceremony"/>
And from the second project, remove the "&#x0003;" from <tag name="Full Name" value="Healing Ceremony&#x0003;"/> so that it reads:

Code: Select all

<tag name="Full Name" value="Healing Ceremony"/>


If you need to distinguish the files in the tag just call them "Healing Ceremony 1", Healing Ceremony 3" or whatever. If you don't care, just delete those lines. Save the file without changing the extension. Audacity should now be able to open it.

Make sure you upgrade to 1.3.13 which has a fix for this problem. If you import the files into 1.3.12 you will have the same issue again.


Gale

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 6:36 pm
by shortyzpapa815
Alright, did that and upgraded to the newer beta...but now I get an "error: not well-formed (invalid token) at line 8 and 10" respectively, for both of them.

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 9:49 pm
by Gale Andrews
shortyzpapa815 wrote:Alright, did that and upgraded to the newer beta...but now I get an "error: not well-formed (invalid token) at line 8 and 10" respectively, for both of them.
Please upload both .aup files using "Upload attachment" underneath the buttons where you write your posts.



Gale

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 10:31 pm
by shortyzpapa815
Here they are

Re: "reference to invalid character number at line 6"

Posted: Fri Sep 09, 2011 11:50 pm
by Gale Andrews
shortyzpapa815 wrote:Here they are
Try the attached edited projects. In both cases you had:

Code: Select all

<tag name="Full Name" value="Healing Ceremony/>
which is wrong because you had not closed the opening " before "Healing" with another ". I changed those projects to:

Code: Select all

<tag name="Full Name" value="Healing Ceremony"/> 
Missing the closing quote I guess gives you a false indication of the line where the error is. Line 10 flagged as an error in the second project should be OK despite the "#":

Code: Select all

<wavetrack name="usa live performance #23-11-93 1" <snip>
But if you still get an error in that second project, try removing the "#" from both lines that have "wavetrack name="usa live performance #23-11-93 1" (but please let us know that this was a problem).



Gale