Character sets conversion functionality
Located in /rcube_charset.php (line 36)
Removes non-unicode characters from input.
Convert a string from one charset to another.
Uses mbstring and iconv functions if possible
A method to guess character set of a string.
Catch an error and throw an exception.
Parse and validate charset name string (see #1485758).
Sometimes charset string is malformed, there are also charset aliases but we need strict names for charset conversion (specially utf8 class)
Convert the data ($str) from RFC 2060's UTF-7 to UTF-8.
If input data is invalid, return the original input string. RFC 2060 obviously intends the encoding to be unique (see point 5 in section 5.1.3), so we reject any non-canonical form, such as &ACY- (instead of &-) or &AMA-&AMA- (instead of &AMAAwA-).
Translated from C to PHP by Thomas Bruederli <[email protected]>
Converts string from standard UTF-7 (RFC 2152) to UTF-8.
Convert the data ($str) from UTF-8 to RFC 2060's UTF-7.
Unicode characters above U+FFFF are replaced by U+FFFE. If input data is invalid, return an empty string.
Translated from C to PHP by Thomas Bruederli <[email protected]>
Converts string from UTF-16 to UTF-8 (helper for utf-7 to utf-8 conversion)
Documentation generated on Wed, 23 May 2012 16:40:48 +0200 by phpDocumentor 1.4.4