I have a simple piece of code (part of a larger PowerShell script) that I use to pack files into .tar:
tar -cf $Destination $Source
It did the job well for what I needed, but recently I encountered some special characters that are not supported.
Characters like : ¿ ï â € ™ are handled well and everything goes fine.
Characters like : ł ż ń ś are just translated to their latin form (l z n s). When the characters get translated the code can't find the source folder (as it's looking for a totally different one) and the resulting .tar file is also renamed.
Is there a solution to process the characters as they are?
Tried to pack all files from folder "D:\Test\Błasino" and expected a "Błasino.tar" file to be created.
PowerShell threw the following error and created a "BÅ,asino.tar" file.
tar.exe: D:/Test/BÅ,asino/*: Couldn't find file: No such file or directory
tar.exe: Error exit delayed from previous errors.