The UConverter class
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)
Introduction
Class synopsis
Predefined Constants
UConverter::REASON_UNASSIGNEDintUConverter::REASON_ILLEGALintUConverter::REASON_IRREGULARintUConverter::REASON_RESETintUConverter::REASON_CLOSEintUConverter::REASON_CLONEintUConverter::UNSUPPORTED_CONVERTERintUConverter::SBCSintUConverter::DBCSintUConverter::MBCSintUConverter::LATIN_1intUConverter::UTF8intUConverter::UTF16_BigEndianintUConverter::UTF16_LittleEndianintUConverter::UTF32_BigEndianintUConverter::UTF32_LittleEndianintUConverter::EBCDIC_STATEFULintUConverter::ISO_2022intUConverter::LMBCS_1intUConverter::LMBCS_2intUConverter::LMBCS_3intUConverter::LMBCS_4intUConverter::LMBCS_5intUConverter::LMBCS_6intUConverter::LMBCS_8intUConverter::LMBCS_11intUConverter::LMBCS_16intUConverter::LMBCS_17intUConverter::LMBCS_18intUConverter::LMBCS_19intUConverter::LMBCS_LASTintUConverter::HZintUConverter::SCSUintUConverter::ISCIIintUConverter::US_ASCIIintUConverter::UTF7intUConverter::BOCU1intUConverter::UTF16intUConverter::UTF32intUConverter::CESU8intUConverter::IMAP_MAILBOXint
Changelog
| Version | Description |
|---|---|
| 8.4.0 | The class constants are now typed. |
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 converter 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 a string from one character encoding to another
↑ and ↓ to navigate • Enter to select • Esc to close • / to open