< Back

Add-DTWFileEncodingByteOrderMarker

Sat Jan 18, 2020 9:31 pm

NAME Add-DTWFileEncodingByteOrderMarker



SYNOPSIS

Adds a byte order marker file encoding to a file





SYNTAX

Add-DTWFileEncodingByteOrderMarker [-Path] <String> [-FileEncoding] <Encoding> [<CommonParameters>]





DESCRIPTION

Adds a byte order marker file encoding to a file.





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-FileEncoding <Encoding>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-DTWFileEncodingByteOrderMarker 'c:\\temp\\testfile.ps1' [System.Text.Encoding]:UTF8



<Adds UTF8 encoding to file testfile.ps1>











RELATED LINKS