pctcode

pctcode is a small utility to deal with percent-encoding in URI components.
it reads an URI component from standard input and outputs the encoded/decoded result to the standard output.

the behaviour of the utility is determined by the program name with which it is invoked.

pctencode

applies percent-encoding to the standard input, prints the result to the standard output.

pctdecode

removes percent-encoding from the standard input, prints the result to the standard output.

references

RFC 3986: URI Generic Syntax (page 12, 2.1. Percent-Encoding)

pctcode is dedicated to the public domain.

git clone ssh://anongit@git.mohrie.net/para/pctcode.git