I have to update a website with a lot of files. I am using Textmate's Find in project to replace text with a massive regular expression.
The problem is: the files are saved on a windows machine in ISO-8859-1 (Windows). Textmate likes to look at files as MacRoman or UTF-8. So, special characters such as curly quotes get replaced by bits of evil.
When I use Reopen file with encoding it reads the file fine. But when I apply a change using Find in project and then issue Save all files all the files get saved with the wrong encoding, leading to a lot of bad characters.
Has anyone any idea how to prevent this and make sure all the files are read and saved with the right encoding?