undefined function: iconv()

Al Smith
2009-01-11
2013-05-28
  • Al Smith
    Al Smith
    2009-01-11

    phpinfo() reports v. 4.4.9 <http://refbase95.livingdeeply.org/TESTS/info.php>
    The manual says, "iconv: (PHP 4 >= 4.0.5, PHP 5)."

    If I comment out: include.inc.php lines 5357 and 5385 (refbase 0.9.5) it works with the kleines bisschen I tested.

    BUT is it safe?

    AND why does it error when iconv() is supposed to be in PHP v. 4.4.9?

    THanks

     
    • Hi Al,

      > If I comment out: include.inc.php lines 5357
      > and 5385 (refbase 0.9.5) it works

      Things may work fine as long you're running refbase with a latin1-based MySQL database and if you don't have any characters that are not part of the latin1 (ISO-8859-1) character set. But if you have some Unicode characters (e.g. in the text of imported records, etc), things will mostly likely break or leave you with garbled text.

      If possible, you should use refbase with an iconv-enabled PHP installation.

      http://requirements.refbase.net/

      > AND why does it error when iconv()
      > is supposed to be in PHP v. 4.4.9?

      But your phpinfo() output doesn't list iconv support. The phpinfo() output should have an iconv block stating "iconv support: enabled" or the like. And the configure command at the top of the output should include '--with-iconv=...'. This is not the case with your phpinfo() output.

      Matthias

       
    • Al Smith
      Al Smith
      2009-01-11

      > But your phpinfo() output doesn't list iconv support.

      Sorry I was rushing so much I assumed it was a built in PHP feature.

      Thanks