url_encode_component()
適用対象: ✅Microsoft Fabric✅Azure データ エクスプローラー✅Azure Monitor✅Microsoft Sentinel
この関数は、入力 URL の文字をインターネット経由で送信できる形式に変換します。 スペースを '%20' としてエンコードし、'+' ではなく、 url_encode とは異なります。
URL エンコードとデコードの詳細については、「 Percent-encoding」を参照してください。
構文
url_encode_component(
url)
構文規則について詳しく知る。
パラメーター
件名 | タイプ | Required | 内容 |
---|---|---|---|
url | string |
✔️ | エンコードする URL。 |
返品
インターネット経由で送信できる形式に変換された URL (文字列)。
例
let url = @'https://www.bing.com/hello world/';
print original = url, encoded = url_encode_component(url)
出力
original | エンコード後 |
---|---|
https://www.bing.com/hello 世界/ | https%3a%2f%2fwww.bing.com%2fhello%20world |