OAuth Core 1.0 Revision A - 5.1. Parameter Encoding

http://oauth.net/core/1.0a/#encoding_parameters


5.1. Parameter Encoding

All parameter names and values are escaped using the [RFC3986] percent-encoding (%xx) mechanism. Characters not in the unreserved character set ([RFC3986] section 2.3) MUST be encoded. Characters in the unreserved character set MUST NOT be encoded. Hexadecimal characters in encodings MUST be upper case. Text names and values MUST be encoded as UTF-8 octets before percent-encoding them per [RFC3629].

unreserved = ALPHA, DIGIT, '-', '.', '_', '~'

5.1 パラメータエンコーディング

全てのパラメータ名とパラメータ値は [RFC3986] パーセントエンコーディングの手順でエスケープされる。

非予約文字セット([RFC3986] セクション 2.3) に含まれない文字はエンコードされなければならない

非予約文字セットに含まれる文字はエンコードされてはいけない

エンコーディング結果に含まれる16進表現の文字は大文字でなければならない

文字情報の名前や値はパーセントエンコーディングを施す前に、それぞれUTF-8のオクテットとしてエンコードされなければならない[RFC3629]。

            非予約文字列 = アルファベット, 数字, '-', '.', '_', '"'