I'm trying to install Craft v3 on a web server currently running Craft 2. As far as I am aware all the required PHP extensions (including iconv) are installed; PHP v7.1.x
The front end works OK, but as soon as I go to the control panel I get this (devmode=true)
> PHP Notice – yii\base\ErrorException iconv(): Wrong charset, > conversion from `UTF-8' to `UTF-16BE' is not allowed
I should note that my method of installation involves getting the site working on a local machine and then copying everything over, and editing the .ENV and general.php accordingly. There is no added content or plugins installed - just an empty Craft install (latest version).
As far as I can see the database charset is set up correctly (UTF8).
What else should I be looking at?
UPDATE: digging around further, if I run a PHP test file, this line
> $res=iconv('utf-8', 'UTF-16BE', 'test1');
throws the same error message. So I am guessing it is a server problem.