final |
---|
iconv implementation in pure PHP, UTF-8 centric.
Implemented:
Charsets available for conversion are defined by files in the charset/ directory and by Iconv::$alias below. You're welcome to send back any addition you make.
Methods | ||
---|---|---|
public
static
|
iconv($inCharset, $outCharset, $str)
|
# |
public
static
|
iconv_mime_decode_headers($str, $mode = 0, $charset = null)
|
# |
public
static
|
iconv_mime_decode($str, $mode = 0, $charset = null)
|
# |
public
static
|
iconv_get_encoding($type = 'all')
|
# |
public
static
|
iconv_set_encoding($type, $charset)
|
# |
public
static
|
iconv_mime_encode($fieldName, $fieldValue, $pref = null)
|
# |
public
static
|
iconv_strlen($s, $encoding = null)
|
# |
public
static
|
strlen1($s, $encoding = null)
|
# |
public
static
|
strlen2($s, $encoding = null)
|
# |
public
static
|
iconv_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
# |
public
static
|
iconv_strrpos($haystack, $needle, $encoding = null)
|
# |
public
static
|
iconv_substr($s, $start, $length = 2147483647, $encoding = null)
|
# |
Constants | ||
---|---|---|
public
|
ERROR_ILLEGAL_CHARACTER = 'iconv(): Detected an illegal character in input string'
|
# |
public
|
ERROR_WRONG_CHARSET = 'iconv(): Wrong charset, conversion from `%s\' to `%s\' is not allowed'
|
# |
Properties | |||
---|---|---|---|
public
static
|
|
$inputEncoding = 'utf-8'
|
# |
public
static
|
|
$outputEncoding = 'utf-8'
|
# |
public
static
|
|
$internalEncoding = 'utf-8'
|
# |