"reference to invalid character number at line 6"

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

Mac 0S X 10.3 and earlier are no longer supported but you can download legacy versions of Audacity for those systems HERE.
bgravato
Posts: 2080
Joined: Wed Jan 13, 2010 8:56 pm
Operating System: Please select

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

Post by bgravato » Mon Aug 29, 2011 3:44 pm

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...
Include as much details as you can in your post (Audacity version, Operating System, Equipment used, etc).
Please post your question in the appropriate forum (regarding audacity version and operating system).

shortyzpapa815
Posts: 4
Joined: Fri Sep 09, 2011 6:36 am
Operating System: Please select

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

Post by shortyzpapa815 » Fri Sep 09, 2011 6:39 am

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?

steve
Site Admin
Posts: 80677
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

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

Post by steve » Fri Sep 09, 2011 10:31 am

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.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

shortyzpapa815
Posts: 4
Joined: Fri Sep 09, 2011 6:36 am
Operating System: Please select

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

Post by shortyzpapa815 » Fri Sep 09, 2011 4:31 pm

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>

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

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

Post by Gale Andrews » Fri Sep 09, 2011 4:49 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

shortyzpapa815
Posts: 4
Joined: Fri Sep 09, 2011 6:36 am
Operating System: Please select

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

Post by shortyzpapa815 » Fri Sep 09, 2011 6:36 pm

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.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

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

Post by Gale Andrews » Fri Sep 09, 2011 9:49 pm

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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

shortyzpapa815
Posts: 4
Joined: Fri Sep 09, 2011 6:36 am
Operating System: Please select

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

Post by shortyzpapa815 » Fri Sep 09, 2011 10:31 pm

Here they are
Attachments
usa live performance 1 23-11-93 - 18 Healing Ceremony 1.aup
(33.17 KiB) Downloaded 80 times
untitled 2 - 10 Healing Ceremony 1.aup
(53.48 KiB) Downloaded 83 times

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

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

Post by Gale Andrews » Fri Sep 09, 2011 11:50 pm

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
Attachments
untitled 2 - 10 Healing Ceremony 1.aup
(53.48 KiB) Downloaded 103 times
usa live performance 1 23-11-93 - 18 Healing Ceremony 1.aup
(33.16 KiB) Downloaded 73 times
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked