pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
205 stars 143 forks source link

[BUG] Add-PnPFileToSiteTemplate can't deal with Umlaute #818

Open FabianAckeret opened 1 year ago

FabianAckeret commented 1 year ago

Issue description

The command Add-PnPFileToSiteTemplate can't deal with Umlaute. Instead of just importing the file including an Umlaut, it will create a subfolder. E.g. when I have a structure in my source as follows: /SharedDocuments/Ankündigung.docx it will create the following structure in the template: /SharedDocuments/Ank%/Ankündigung.docx

Command used

Add-PnPFileToSiteTemplate -Path example.xml -SourceUrl "https://example.sharepoint.com/sites/example/SharedDocuments/Ankündigung.docx"

Expected behavior

For the command Add-PnPFileToSiteTemplate to keep the original location of the exported file and not create "random" subfolders.

What is the version of the Cmdlet module you are running?

v1.12.0

Which operating system/environment are you running PnP PowerShell on?

doubleugk commented 2 months ago

In my case I'm also adding meta information to the file and Umlaute are not supported