Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for 2utf8.ps

(view source code of 2utf8.ps as plain text)

  1. # Convert any text file to UTF-8
  2.  
  3. param( [string] $infile = $(throw "Please specify a filename.") )
  4.  
  5. $outfile = "$infile.utf8"
  6.  
  7. get-content -Path $infile | out-file $outfile -encoding utf8
  8.  

page last uploaded: 2015-08-24, 21:15