Remove-StringDiacritic
SYNOPSIS
Remove diacritics (accents) from a string.
SYNTAX
Remove-StringDiacritic [[-String] <String>] [[-NormalizationForm] <NormalizationForm>] [<CommonParameters>]
DESCRIPTION
This function removes diacritics (accents) from a string by normalizing it and filtering out non-spacing marks. It supports different normalization forms as specified by the .NET NormalizationForm enumeration.
EXAMPLES
EXAMPLE 1
Returns: "L'ete de Raphael"
EXAMPLE 2
Returns: "Curacao"
PARAMETERS
-String
Specifies the string from which diacritics need to be removed.
Type: String
Parameter Sets: (All)
Aliases: Content, Text
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-NormalizationForm
Specifies the normalization form to use. Defaults to 'FormD'. For more information, see: https://msdn.microsoft.com/en-us/library/system.text.normalizationform(v=vs.110).aspx
Type: NormalizationForm
Parameter Sets: (All)
Aliases:
Accepted values: FormC, FormD, FormKC, FormKD
Required: False
Position: 2
Default value: FormD
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.