unicode_encode Convert a unicode string in any encoding &reftitle.description; stringunicode_encode unicodeinput stringencoding interrmode Takes a unicode string and converts it to a string in the specified encoding. &reftitle.parameters; input The unicode string that is converted. encoding The new encoding for input. errmode Conversion error mode. This parameter determines the action to take when the converter cannot convert a character. For a list of available modes, refer to unicode_set_error_mode. If the parameter is not set, the global error mode is used. &reftitle.returnvalues; A string on success&return.falseforfailure;. &reftitle.errors; Emits a E_WARNING level error if a converter cannot be created for the desired encoding. &reftitle.examples; A <function>unicode_encode</function> example Note: The characters will be seen instead of entities in the output. ]]> &example.outputs.similar; &reftitle.notes; &warn.experimental.func; &reftitle.seealso; unicode_set_error_mode unicode_decode