iconv()
iconv - Convert string to requested character encoding
Syntax
string iconv (
string $in_charset,
string $out_charset,
string $str)
Arguments
- in_charset - The input charset.
- out_charset - The output charset. If you append the string //TRANSLITto out_charset transliteration is activated. This means that when a character can\'t be represented in the target charset, it can be approximated through one or several similarly looking characters. If you append the string //IGNORE, characters that cannot be represented in the target charset are silently discarded. Otherwise, str is cut from the first illegal character and an E_NOTICE is generated.
- str - The string to be converted.
Description
Performs a character set conversion on the string str from in_charset to out_charset.
Version
PHP 4.0.5, 5
Return value
Returns the converted string or FALSE on failure.