views:

376

answers:

1

Hello, everyone

One site was moved to another server where is installed Solaris and other iconv settings. Now, when I validate anythink with "StringLength" function from Zend Framework my scripts fail with this error:

Notice: iconv_strlen() [function.iconv-strlen]: Wrong charset, conversion from `UTF-8' to `UCS-4LE' is not allowed in /usr_files/phplibs/library/Zend/Validate/StringLength.php on line 213

As I understood, server does know about "UCS-4LE" and it is main problem.

Server administrator answered that he could resolve this problem. Do you have any ideas how I can setup ZF at this server?

+1  A: 

the iconv library was expecting a string encoded in 'UCS-4LE', but received one that it detected as 'UTF-8'. You probably have a different default encoding on the new server. Try passing the third parameter to the constructor (as 'utf-8').

soulmerge
I have tryied:mb_internal_encoding("UTF-8");As well,iconv_set_encoding("internal_encoding", "UTF-8");iconv_set_encoding("output_encoding", "UTF-8");It doesnt work
Sorry, my fault. updated answer.
soulmerge