15
6
I need to convert a text file to UTF-8 format via Windows command prompt. This needs to be done on another machine and I do not have rights to install software on that machine. I need something like:
c:\notepad source-file target-file --encoding option
Is there a Windows command prompt utility which can do it?
Additionally, you need to switch to powershell in order to execute the command and then exit it to go back to windows command prompt. – user1107888 – 2017-01-05T16:09:50.937
Indeed. Or run it directly in a PowerShell shell. – DavidPostill – 2017-01-05T16:44:27.190
@DavidPostill any idea how we can convert more than one file i.e batch file processing with the same command line ? – vibs2006 – 2019-01-28T09:49:19.390
1
@vibs2006 Use a
– DavidPostill – 2019-01-28T18:32:16.137ForEach
loop. See ForEach - PowerShell - SS64.com.Will this method convert to plain UTF-8 or UTF-8-BOM? – Cale Sweeney – 2019-10-23T22:28:08.403