Avatar of Jasmine Sandlas
Jasmine Sandlas
Flag for Oman asked on

Source file is "ANSI" in a srcfiles folder, need to get this converted to "UTF8" through Windows batch script. Experts Please help

Source file is "ANSI" in a srcfiles folder, need to get this converted to "UTF8" through Windows batch script. Experts Please help.
I cant use any tool for it. Please help
Windows BatchMySQL Server

Avatar of undefined
Last Comment
Jasmine Sandlas

8/22/2022 - Mon
Bill Prew

Should be able to do this using Powershell, try:

Get-Content "filein.txt" -Encoding Oem | Out-File "fileout.txt" -Encoding utf8

Open in new window


»bp
Jasmine Sandlas

ASKER
tried with the same command but getting an error for GET command "Get is not recognised as an Internal and External command"
ASKER CERTIFIED SOLUTION
Bill Prew

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jasmine Sandlas

ASKER
Thanks so much mate.. that worked  awesome
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Jasmine Sandlas

ASKER