mb_convert_encodingConvert character encoding
&reftitle.description;
arraystringfalsemb_convert_encodingarraystringstringstringto_encodingarraystringnullfrom_encoding&null;
Converts the character encoding of string
to to_encoding
from optionally from_encoding.
If string is an &array;, all its &string; values will be
converted recursively.
&reftitle.parameters;
string
The &string; or &array; being encoded.
to_encoding
The type of encoding that string is being converted to.
from_encoding
Is specified by character code names before conversion. It is either
an array, or a comma separated enumerated list.
If from_encoding is not specified, the internal
encoding will be used.
See supported
encodings.
&reftitle.returnvalues;
The encoded &string; or &array; on success, &return.falseforfailure;.
&reftitle.changelog;
&Version;&Description;8.0.0from_encoding is nullable now.
7.2.0
This function now also accepts an &array; as string.
Formerly, only &string;s have been supported.
&reftitle.examples;
mb_convert_encoding example
]]>
&reftitle.seealso;
mb_detect_order