Thread:Project:Support desk/LocalSettings.php corrupted, how to fix?

My provider uses CPanel for site management. I tried to edit LocalSettings.php, and chose "ASCII" for the encoding because of the stern warning about not adding byte-order marks to the beginning of the file, but alas, the stupid editor did even worse things. It changed all # symbols to 0xA6 and all tabs to 0xA4, for God only knows what reason, and who knows what else it may have corrupted.

It caused the error: Parse error: syntax error, unexpected T_STRING in /home/c64dev79/public_html/LocalSettings.php on line 2

I downloaded the file to my local machine and used a very good editor (EditPad Pro) to fix those two problems, and uploaded the file. Now even though it looks correct based on everything I know, I'm getting a different error: Parse error: syntax error, unexpected '=' in /home/c64dev79/public_html/LocalSettings.php on line 21

Line 21 is: wgSitename     = "WikiName";

That line is copied directly from the file. I don't see what could be wrong with it. There are no funny characters there, just spaces, letters, and ASCII symbols. It originally started with a tab character, but I removed it... didn't help.

Since there's talk in the manual about downloading LocalSettings.php, it would seem that it wouldn't be too hard to find a clean copy of it that I could upload and just be on my way. But in posts by people in a similar situation there doesn't seem to be any such simple answer... Something about the file being created when you install.

It seems too easy to corrupt this file, is there no simple solution for fixing it? I'm lost.