Skip to content

Character Encoding

Character encoding defines how characters are represented in bytes.

Common encodings include:

  • UTF-8
  • ASCII
  • ISO-8859-1

UTF-8 is the most widely used encoding.

echo mb_internal_encoding();