rfc1738Decode

Decodes string using the RFC 1738 recommendations: the <constant>&lt;&gt;&quot;#%{}|\^~[]&apos;`;/?:@=&amp;</constant> and space characters are replaced by <constant>&quot;%ab&quot;</constant> where <constant>ab</constant> is the hexadecimal number corresponding to the character.

string should respect the RFC 1738 encoding. If this is not the case (for example if there is a "2z" because 2z is not an hexadecimal value), then the part with the problem is not decoded, and the function returns FALSE.

string is decoded in place, no new string gets created.

bool
rfc1738Decode
(
string string_
)

Parameters

string_ string

a string to decode

Return Value

Type: bool

true if no error occurred.