← All docs

iconv_set_encoding()

Sets the input, output, or internal character encoding.

iconv_set_encoding()

function iconv_set_encoding(string $type, string $encoding): bool

Sets the input, output, or internal character encoding.

Parameters:

  • $type (string)
  • $encoding (string)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how iconv_set_encoding is implemented in the compiler, see the internals page.