Knowledge Base : Fix solaris 11 iconv

How to fix the iconv installation on an Solaris 11 box/zone

On a Solaris 11 box with installed amp package (apache22 and php53 and iconv), this is a standard situation:

$ iconv -l
Failed to open the directory /usr/lib/iconv/geniconvtbl/binarytables/.

This also leads to errors with PHP iconv-based functions, like:

14:07 core.ERROR: exception ‚Zend_Locale_Exception‘ in …/engine/Library/Zend/Locale/Format.php:351
Stack trace:
#0 …/engine/Library/Zend/Currency.php(194): Zend_Locale_Format::toNumber(1337.81, Array)

Solution: install pkg unicode-core.

See also: PHP bug entry