Based on the suggestion from this thread, i have used powershell to do the UTF-8 conversion, now i am running into another problem, i have a very huge file around 18 gb which i am trying to convert on a machine with around 50GB RAM free, but this conversion process eats up all the ram and encoding fails, is there a way to limit the RAM usage or to do the conversion in chunks?
Using PowerShell to write a file in UTF-8 without the BOM
BTW below is exact code
foreach ($file in ls -name $Path\CM*.csv)
{
$file_content = Get-Content "$Path\$file";
[System.IO.File]::WriteAllLines("$Path\$file", $file_content);
echo "encoding done : $file"
}