Skip to content

Instantly share code, notes, and snippets.

Jeff Patton jeffpatton1971

View GitHub Profile
jpoehls / encoding-helpers.ps1
Created Apr 17, 2012
Convert-FileEncoding and Get-FileEncoding
View encoding-helpers.ps1
Converts files to the given encoding.
Matches the include pattern recursively under the given path.
Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8
function Convert-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') {
$count = 0
You can’t perform that action at this time.