'Binary', 'quoted' => 'Quoted-printable', '7bit' => '7 Bit', '8bit' => '8 Bit', 'base64' => 'Base 64', ], $name, $selected, [ 'class' => 'acym__select', 'acym-data-infinite' => '', 'style' => 'max-width: 200px;', ], '', '', 'config_encoding', false, true ); } public function charsetField(string $name, string $selected, array $attribs = [], bool $display = false): string { $charsetType = new CharsetType(); return acym_select( $charsetType->charsets, $name, $selected, $attribs, '', '', null, false, $display ); } } /** * Logs the errors happening in the iconv function in order to know if we can use its result or not * * @return bool true if an error occurred */ function acym_errorHandlerEncoding(int $errno, string $errstr = ''): bool { static $error = false; if ($errno === -1) { //return the value of the static flag and re init it $currentError = $error; $error = false; return $currentError; } //set the satic flag $error = true; //no need to display the notice return true; }