App to convert from ANSI to UTF8 on windows
Does anyone know of a freeware or open source program to convert .txt files to unicode?
As specified by Idigas, .txt is not an encoding. I'm assuming you meant these .txt files used the default encoding when you saved them, which I believe is set to ANSI if you used Notepad on Windows.
You'll need to know the initial format before converting them, but you can use iconv. You haven't specified your operating system, but you can get iconv for Linux, Windows, and Mac. I believe it is already included in most Linux distributions.
$iconv -f ms-ansi -t utf-8 ansi.txt > utf-8.txt
.txt is a format, unicode is an encoding.
Did you mean, maybe, ASCII to let's say, UTF-16 ? Vim perhaps - not batch per se, but with its line command capabilities it can be made automated to a certain point. But this is merely speculating - could you please refine your question as to what you're trying to accomplish.