Invalid Encoding Specification Xml

Hi, I want to parse and Xml File.
This is my code.

string path = "Assets/Resources/Xml/Level1.xml";
	FileStream fsCPAP = null;
	XmlDocument xmlDoc = new XmlDocument ();

	void Start ()
	{
	

		if(File.Exists(path))
		{
			fsCPAP = new FileStream(path, FileMode.Open, FileAccess.Read);
			XmlTextReader rdrXml = new XmlTextReader(fsCPAP);
		do
		{
			switch(rdrXml.NodeType)
				{
				case XmlNodeType.Text:
					print( rdrXml.Value);
					break;
				}
		}

		while(rdrXml.Read());		//as longs as read return true
		//Once Read() returns false, STOP!@!
		}

		else return;


	}

Xml file

<?xml version = "1.0" encoding = "utf - 8"?>

<levels>
		<level>
				<Title>level1</Title>
				<ItemNumber> 2 </ItemNumber>
		</level>

		<level>
				<Title>level2</Title>
				<ItemNumber> 2 </ItemNumber>
		</level>
</levels>

The error I got at line XmlTextReader rdrXml = new XmlTextReader(fsCPAP);

XmlException: invalid encoding specification.

Any help ?

Read exception, learn that something doesn’t like the encoding. Look at XML, and notice that encoding has spaces in the format. Guess that the format needs to have the spaces removed.