PowerShell
                                
                                 PowerShell copied to clipboard
                                
                                    PowerShell copied to clipboard
                            
                            
                            
                        Update Remove-StringDiacritic.ps1
I added a way to run the function in objects, so you can bulk remove diacritics from any powershell object, even imported CSV and JSON files
I added a section to replace the upside down ? and ! used in Spanish and a section to remove extra spaces, can you include this in your official version? # Normalize the String $Normalized = $StringValue.Normalize($NormalizationForm) # Replace the special punctuation characters $Normalized = $Normalized.Replace("¿", "?") $Normalized = $Normalized.Replace("¡", "!") # Remove extra spaces $Normalized = $Normalized -replace '\s{2,}', ' ' $NewString = New-Object -TypeName System.Text.StringBuilder