rfc1738_decode


Description:


public bool rfc1738_decode (string string)

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 "2 z" 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.

Parameters:

string

a string to decode

Returns:

true if no error occurred.


Namespace: Gda
Package: libgda-6.0