1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

URLのパーセントエンコーディングを理解する

Last updated at Posted at 2024-02-14

1.これを読む
「2.1. パーセントエンコーディング」
https://triple-underscore.github.io/rfc-others/RFC3986-ja.html#section-2.1

2.よく使うエンコードを丸暗記

	%20 = 半角スペース
	%25 = %
	%2A = *
	%3A = :
	%5C = \
	%2C = ,

3.エンコード・デコードの問題を人力で3個くらい解くと君はURLエンコードマスター。

fq.start_date=*:2024-02-14T13\:23\:59Z
fq.start_date=%2A%3A2024-02-14T13%5C%3A23%5C%3A59Z

fq.stock=0:*
fq.stock=0%3A%2A

sort=score desc,id asc
sort=score%20desc%2Cid%20asc

※1バイト以上の文字は、「%〇〇」がそのバイト数分連続する。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?