Skip to content

Instantly share code, notes, and snippets.

@sdoubleday
sdoubleday / EncodingHelper.psm1
Last active May 1, 2019 07:50 — forked from jpoehls/encoding-helpers.ps1
Convert-FileEncoding and Get-FileEncoding
<#SDS 2017-09-12 - Changed from ps1 to psm1.#>
function Convert-FileEncoding {
[CmdletBinding(
SupportsShouldProcess =$true <#Enables -Confirm and -Whatif, for which you will want: If ($PSCmdlet.ShouldProcess("Message")) { BlockofCode } #>
)]
[OutputType('System.IO.FileSystemInfo')]
PARAM(