I'm having problems renaming items that have ANSI characters in them using PowerShell.
Examples are characters like "é" in "\Michael Bublé" or "\Green Day\¡DOS!"
What I want to do is rename "\Michael Bublé" to "\Michael Buble".
I've done the code to map characters to a-z characters. The problems is that when I do either a Rename-Item operation or a delete operation the system reports the file doesn't exist.
I think this might be an encoding issue. I can't find any way around it.
ren : Cannot rename because item at 'Michael Bublé' does not exist.
At C:\...\Replace_non_Ascii_FileObjectName.ps1:24 char:5
+ ren $_ $NewName
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Rename-Item], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RenameItemCommand