Wrong encoding, conversion from “%s” to “%s” is not allowed

Description

This message reports that the origin or the destination encoding is not supported on this server. It might be a typo in the encoding name, or an uninstalled encoding on the system.

Example

<?php

$string = iconv('utf-8', 'not-an-encoding', $source);

?>

Solutions

  • Check the names of the encodings for typos.

  • Check the installed encodings on the system.

  • Check the encodings actually exist.