UConverter (class)
The UConverter class
Introduction
(PHP 5.5.0, PHP 7, PECL >= 3.0.0a1)
Class synopsis
UConverter {
/* Constants */
/* Methods */
public __construct ([ string $destination_encoding [, string $source_encoding ]] )
public string convert ( string $str [, bool $reverse ] )
public mixed fromUCallback ( integer $reason , string $source , string $codePoint , integer &$error )
public static array getAliases ([ string $name ] )
public static array getAvailable ( void )
public string getDestinationEncoding ( void )
public integer getDestinationType ( void )
public integer getErrorCode ( void )
public string getErrorMessage ( void )
public string getSourceEncoding ( void )
public integer getSourceType ( void )
public static array getStandards ( void )
public string getSubstChars ( void )
public static string reasonText ([ integer $reason ] )
public void setDestinationEncoding ( string $encoding )
public void setSourceEncoding ( string $encoding )
public void setSubstChars ( string $chars )
public mixed toUCallback ( integer $reason , string $source , string $codeUnits , integer &$error )
public static string transcode ( string $str , string $toEncoding , string $fromEncoding [, array $options ] )}
Predefined Constants
UConverter::REASON_UNASSIGNED
UConverter::REASON_ILLEGAL
UConverter::REASON_IRREGULAR
UConverter::REASON_RESET
UConverter::REASON_CLOSE
UConverter::REASON_CLONE
UConverter::UNSUPPORTED_CONVERTER
UConverter::SBCS
UConverter::DBCS
UConverter::MBCS
UConverter::LATIN_1
UConverter::UTF8
UConverter::UTF16_BigEndian
UConverter::UTF16_LittleEndian
UConverter::UTF32_BigEndian
UConverter::UTF32_LittleEndian
UConverter::EBCDIC_STATEFUL
UConverter::ISO_2022
UConverter::LMBCS_1
UConverter::LMBCS_2
UConverter::LMBCS_3
UConverter::LMBCS_4
UConverter::LMBCS_5
UConverter::LMBCS_6
UConverter::LMBCS_8
UConverter::LMBCS_11
UConverter::LMBCS_16
UConverter::LMBCS_17
UConverter::LMBCS_18
UConverter::LMBCS_19
UConverter::LMBCS_LAST
UConverter::HZ
UConverter::SCSU
UConverter::ISCII
UConverter::US_ASCII
UConverter::UTF7
UConverter::BOCU1
UConverter::UTF16
UConverter::UTF32
UConverter::CESU8
UConverter::IMAP_MAILBOX
Table of Contents
- UConverter::__construct — Create UConverter object
- UConverter::convert — Convert string from one charset to another
- UConverter::fromUCallback — Default "from" callback function
- UConverter::getAliases — Get the aliases of the given name
- UConverter::getAvailable — Get the available canonical converter names
- UConverter::getDestinationEncoding — Get the destination encoding
- UConverter::getDestinationType — Get the destination converter type
- UConverter::getErrorCode — Get last error code on the object
- UConverter::getErrorMessage — Get last error message on the object
- UConverter::getSourceEncoding — Get the source encoding
- UConverter::getSourceType — Get the source convertor type
- UConverter::getStandards — Get standards associated to converter names
- UConverter::getSubstChars — Get substitution chars
- UConverter::reasonText — Get string representation of the callback reason
- UConverter::setDestinationEncoding — Set the destination encoding
- UConverter::setSourceEncoding — Set the source encoding
- UConverter::setSubstChars — Set the substitution chars
- UConverter::toUCallback — Default "to" callback function
- UConverter::transcode — Convert string from one charset to another
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/class.uconverter.php