roundcubemail/program/lib/Roundcube/rcube_vcard.php
private static function decode_value($value, $encoding)
    {
        switch (strtolower($encoding)) {
        case 'quoted-printable':
            self::$values_decoded = true;
            return quoted_printable_decode($value);

        case 'base64':
        case 'b':
            self::$values_decoded = true;
            return base64_decode($value);

        default:
            return $value;
        }
    }
private static function decode_value($value, $encoding)
    {
        switch (strtolower($encoding)) {
        case 'quoted-printable':
            self::$values_decoded = true;
            return quoted_printable_decode($value);

        case 'base64':
        case 'b':
            self::$values_decoded = true;
            return base64_decode($value);

        default:
            return $value;
        }
    }
private static function decode_value ( $ value , $ encoding ) { switch ( strtolower ( $ encoding ) ) { case 'quoted-printable' : self :: $ values_decoded = true ; return quoted_printable_decode ( $ value ) ; case 'base64' : case 'b' : self :: $ values_decoded = true ; return base64_decode ( $ value ) ; default : return $ value ; } }
Decode a given string with the encoding rule from ENCODING attributes

@param string String to decode
@param string Encoding type (quoted-printable and base64 supported)

@return string Decoded 8bit value
Decode a given string with the encoding rule from ENCODING attributes