public function getUtf8Value()
    {
        if (strcasecmp($this->encoding, 'utf8') == 0  
            || strcasecmp($this->encoding, 'utf-8') == 0 
        ) {
                return $this->value;
        } else {

            return (PHP_OS != 'AIX') ? iconv($this->encoding, 'UTF-8', $this->value) : iconv('ISO8859-1', 'UTF-8', $this->value);
        }
    }
public function getUtf8Value()
    {
        if (strcasecmp($this->encoding, 'utf8') == 0  
            || strcasecmp($this->encoding, 'utf-8') == 0 
        ) {
                return $this->value;
        } else {

            return (PHP_OS != 'AIX') ? iconv($this->encoding, 'UTF-8', $this->value) : iconv('ISO8859-1', 'UTF-8', $this->value);
        }
    }
public function getUtf8Value ( ) { if ( strcasecmp ( $ this -> encoding , 'utf8' ) == 0 || strcasecmp ( $ this -> encoding , 'utf-8' ) == 0 ) { return $ this -> value ; } else { return ( PHP_OS != 'AIX' ) ? iconv ( $ this -> encoding , 'UTF-8' , $ this -> value ) : iconv ( 'ISO8859-1' , 'UTF-8' , $ this -> value ) ; } }
Get field value in UTF-8 encoding

@return string
Get field value in UTF - 8 encoding