best way to make all my txt files utf-8 encoded?

Subject says it all, really, I’m gonna use emacs instead of text edit for all my txt file editing so I want utf-8 encoding to avoid any compatibility issues. I have a lot (like >10k) txt files so this will have to be automated. What’s the best approach to this? Could I use applescript? (I have set my default save option to utf 8 now, does that mean opening and reserving a file with a different encoding makes it utf8?)

Of course! This might help.

If you’re already familliar with unix then I should consider using iconv… iconv is ‘the’ encoding tool to use.

Thanks. I’ll check out iconv. Btw, Your link doesn’t work for me, alastor. Maybe you could edit it?

Oops…
Here it is.

NOTE: Those text manipulations are old and some of them are outdated and became incorrect.

One of the most important things are that in the shell and AppleScript itself has changed it’s default encodings. Also those examples uses ASCII Numbers and ASCII character classes while it should use string id’s.