Charset “%s” is not supported, assuming UTF-8

Description

The provided character set, third argument, is not valid.

Example

<?php

    htmlentities($a, $b, 'xxx');

?>

Literal Examples

  • Charset “xxx” is not supported, assuming UTF-8

Solutions

  • Use a valid character set.

  • Check for typos, or empty values.

Changed Behavior

This error may appear following an evolution in behavior, in previous versions. See ` <https://php-changed-behaviors.readthedocs.io/en/latest/behavior/.html>`_.