Skip to content

Instantly share code, notes, and snippets.

View ChristianoKiss's full-sized avatar

Christiano Barbosa Kiss ChristianoKiss

  • DCSL GuideSmiths
  • Arnold, Nottinghamshire (United Kingdom)
View GitHub Profile
@jpoehls
jpoehls / encoding-helpers.ps1
Created April 17, 2012 14:54
Convert-FileEncoding and Get-FileEncoding
<#
.SYNOPSIS
Converts files to the given encoding.
Matches the include pattern recursively under the given path.
.EXAMPLE
Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8
#>
function Convert-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') {
$count = 0