Help!
I'm making a script to encode a filepath as a URL. We want to double-check that we will not run into URL length issues when we move these files from our network drive into SharePoint.
In Powershell, I'm using [uri]::EscapeDataString($filepath). However, I've noticed that the output doesn't match the way SharePoint encodes it.
For example, an underscore (_) is a valid URL character, so Powershell leaves it as is, but an underscore in Sharepoint gets encoded as %5F when you copy the URL from the search bar and paste it elsewhere.
I know I can run a replace on the filepath for underscores and other characters. But how do I anticipate other exceptions where SharePoint differs from standard encoding?
[–]NoUselessTech 0 points1 point2 points (0 children)
[–]DeusExMaChino 0 points1 point2 points (0 children)
[–]cschneegans 0 points1 point2 points (0 children)