Iconv is available?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rod
    Member
    • Mar 2004
    • 65

    #1

    Iconv is available?

    I install a script using this feature...

    It worked in the morning, now Im getting an error, I serach in a php info and didnt find that, this is weird!

    <b>Fatal error</b>: Call to undefined function: iconv() in <b>/home/
  • rod
    Member
    • Mar 2004
    • 65

    #2
    well, apparently only happens with some inputs I made to that script

    $this->url=$url;
    if(preg_match('/charset=([a-zA-Z0-9-_]+)/i', $this->html, $matches)) {
    $this->encoding=trim($matches[1]);
    if(strcasecmp($this->encoding, 'utf-8') != 0) {
    $this->html=iconv($this->encoding, 'UTF-8//IGNORE', $this->html);
    }
    }
    any ideas?

    Comment

    Working...