Class utf8
UTF-8 character set.
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Charset
-
Core\Charset\MultiByte
-
Core\Charset\Driver\utf8
Package: Core\Charset
Link: http://en.wikipedia.org/wiki/UTF-8
Since: 3.0
Requires: PHP 5.3, MBString
Located at Charset/Driver/utf8.inc.php
Methods summary
public
string
|
#
convertFromUTF8( string $string )
Converts a string encoded in UTF-8 to the current character set. |
public
string
|
#
convertToUTF8( string $string )
Converts a string encoded in the character set of this instance to UTF-8. |
public
string
|
#
xmlSpecials( $string, integer $quotes = null )
Encodes all special XML characters in provided string with respect to this character set instance. |
Methods inherited from Core\Charset\MultiByte
__construct(),
len(),
pad(),
sub(),
toLower(),
toUpper(),
truncate(),
width()
Methods inherited from Core\Charset
_restoreEnvironment(),
_setupEnvironment(),
activate(),
active(),
alias(),
all(),
convertFrom(),
convertFromActive(),
convertTo(),
convertToActive(),
convertUCS2ToUTF8(),
convertUTF8ToUCS2(),
format(),
get(),
hash(),
iterator(),
registerAlias(),
sizeof(),
vformat()
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
chain(),
getValueForKey(),
getValueForKeyPath(),
getValueForUndefinedKey(),
issetValueForKey(),
setValueForKey(),
setValueForKeyPath(),
setValueForUndefinedKey(),
uuid()
Constants summary
Constants inherited from Core\Charset
ACK,
BEL,
BS,
CAN,
CR,
CRLF,
DEL,
DLE,
DoubleQuotesFlag,
EM,
ENQ,
EOT,
ESC,
ETB,
ETX,
FF,
FS,
GS,
LF,
LeftPadFlag,
NAK,
NUL,
NoQuotesFlag,
RS,
RightPadFlag,
SI,
SO,
SOH,
STX,
SUB,
SYN,
SingleQuotesFlag,
TAB,
TruncatePadFlag,
US,
VT
Constants inherited from Core\Object
AnyParameterType,
AutochainParameterType,
AutocreateParameterType,
BooleanParameterType,
CharParameterType,
EnumParameterType,
IntegerParameterType,
RealParameterType,
StringParameterType,
UserParameterType