Editing PHP & Tpl files


Would like to know best way to edit tpl and php files.

I change the extension to txt and make changes in notepad. Then save the file and change extension back to original. Most of the time I just get errors, even if changing just a couple of letters.

When saving the text file, there are options for ANSI, UTF-8 and a couple of others.

What should I be doing?



If you insist on using Notepad, which I also frequently do, but Notepad+ is better IMO, then when you are saving, File>Save As>File Name: filename.php, Save as Type: All Files, Encoding: ANSI - that's what I do and never have any problems.

Thank you,

Maybe saving as utf-8 was the problem.