< Back
Get-TextFileEncoding
Post
NAME Get-TextFileEncoding
SYNOPSIS
This function retrieves the encoding of a given text file.
SYNTAX
Get-TextFileEncoding [-path] <String> [[-outputStream] <String>] [<CommonParameters>]
DESCRIPTION
This function retrieves the encoding of a given text file.
Adapted from https://resources.oreilly.com/examples/ ... coding.ps1
PARAMETERS
-path <String>
The path to the file on the local machine.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-outputStream <String>
Select the stream where the error messages will be directed.
Required? false
Position? 2
Default value Error
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
System.String
RELATED LINKS
SYNOPSIS
This function retrieves the encoding of a given text file.
SYNTAX
Get-TextFileEncoding [-path] <String> [[-outputStream] <String>] [<CommonParameters>]
DESCRIPTION
This function retrieves the encoding of a given text file.
Adapted from https://resources.oreilly.com/examples/ ... coding.ps1
PARAMETERS
-path <String>
The path to the file on the local machine.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-outputStream <String>
Select the stream where the error messages will be directed.
Required? false
Position? 2
Default value Error
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
System.String
RELATED LINKS