【发布时间】:2019-11-29 18:50:50
【问题描述】:
在 Powershell 中 Javascripts encodeURI() / encodURIComponent() 的等价物是什么?
我正在编码一个 URL(其中需要一些 %20s),我讨厌手动进行。
【问题讨论】:
-
您可以使用 URI 类中的方法。
[uri]::EscapeUriString('https://exmaple.com/string with spaces')
标签: javascript powershell encodeuricomponent