I have the following windows batch command as part of a larger batch file:
type *.sql > dbScript.txt
ren dbScript.txt dbScript.sql
As you can see it joins all SQL scripts in a particular directory into one so that it can be executed during the database build process.
My problem is that I now have non ANSI characters in one of the SQL script files but dbScript.txt (and subsequently dbScript.sql) are being encoded as ANSI.
How can I change the encoding of the output file to UTF-8?