mb_convert_encodingPodręcznik PHPPoprzedniNastępnymb_convert_encoding (PHP 4 >= 4.0.6)mb_convert_encoding -- Convert character encodingDescriptionstring mb_convert_encoding ( string str, string to-encoding [, mixed from-encoding])
mb_convert_encoding() converts
character encoding of string str from
from-encoding to
to-encoding.
str : String to be converted.
from-encoding is specified by character
code name before conversion. it can be array or string - comma
separated enumerated list. If it is not specified, the internal
encoding will be used.
Przykład 1. mb_convert_encoding() example/* Convert internal character encoding to SJIS */
$str = mb_convert_encoding($str, "SJIS");
/* Convert EUC-JP to UTF-7 */
$str = mb_convert_encoding($str, "UTF-7", "EUC-JP");
/* Auto detect encoding from JIS, eucjp-win, sjis-win, then convert str to UCS-2LE */
$str = mb_convert_encoding($str, "UCS-2LE", "JIS, eucjp-win, sjis-win");
/* "auto" is expanded to "ASCII,JIS,UTF-8,EUC-JP,SJIS" */
$str = mb_convert_encoding($str, "EUC-JP", "auto");
See also: mb_detect_order().
PoprzedniSpis treściNastępnymb_convert_casePoczątek rozdziałumb_convert_kana
Wyszukiwarka
Podobne podstrony:
function mb convert encodingfunction mb convert kanafunction mb convert variablesfunction mb detect encodingfunction mb convert variablesfunction mb convert variablesfunction mb convert kanafunction mb internal encodingfunction mb internal encodingfunction mb detect encodingfunction mb regex encodingfunction mb strimwidthfunction mb http outputfunction base convertfunction mb http outputwięcej podobnych podstron