クエリ文字列内の値
入力 値スコープでの a b&c。
結果 a%20b%26c — the & is escaped so it cannot be read as a second parameter.
テキストをパーセントエンコードしたり元に戻したりできます。URL 全体とクエリ値の単位を切り替えて使い分けられます。
結果
入力値を変更すると、結果はすぐに更新されます。
入力 値スコープでの a b&c。
結果 a%20b%26c — the & is escaped so it cannot be read as a second parameter.
入力 URL全体スコープでの a b&c。
結果 a%20b&c — the space is still escaped but & is preserved as a separator.
入力 %E4%BD%A0%E5%A5%BD
結果 你好 — 3つのUTF-8バイトが3つの%XXの3文字組になり、デコードで復元されます。
? や & の後に配置する値には必ず encodeURIComponent を使用してください。値の中のエスケープされていない & や = はクエリを分割してしまうからです。encodeURI は、区切り文字がすでに配置された完全なリンクにのみ使用してください。
The plus sign belongs to form encoding for application/x-www-form-urlencoded bodies, where it means a space. JavaScript URL functions write %20 instead. This tool reads + as a space when decoding and always writes %20 when encoding, so the two conventions do not collide.
%25 is an encoded percent sign, which means the text was encoded twice. Encode once at the point where the value is inserted, not again when building the final link.
% の後には正確に 2 桁の 16 進数が続く必要があるため、デコードは失敗します。このツールは文字を黙って破棄するのではなく、問題を報告します。
免責事項: 結果は本ページ記載の計算式による参考値です。実際の必要量は材料・施工方法・環境によって変わるため、ご注文前に余裕を見てください。