utf8
in package
UTF-8 friendly replacement functions - v0.2 Copyright (C) 2004-2006 Niels Leenheer & Andy Matsubara
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Supported functions:
- utf8::convert()
- utf8::detect()
- utf8::strtolower()
- utf8::strtoupper()
- utf8::strlen()
- utf8::strwidth()
- utf8::substr()
- utf8::strimwidth()
- utf8::strcut()
- utf8::strrpos()
- utf8::strpos()
- utf8::substr_count()
- utf8::encode_mimeheader()
- utf8::send_mail()
- utf8::encode_javascript()
- utf8::encode_numericentity()
Table of Contents
Properties
- $charsets : mixed
- Character set translation support
- $iconv_sets : mixed
- $mb_sets : mixed
- $utf8_tables : mixed
Methods
- __construct() : mixed
- convert() : mixed
- Convert a foreign charset encoding from or to UTF-8
- detect() : mixed
- Detect the encoding of the string
- encode_javascript() : mixed
- Prepare an UTF-8 string for use in JavaScript
- encode_mimeheader() : mixed
- Encode a string for use in a MIME header Simplied replacement for mb_encode_mimeheader()
- encode_numericentity() : mixed
- Encode an UTF-8 string with numeric entities Simplied replacement for mb_encode_numericentity()
- sanitize() : mixed
- replaces invalid UTF-8 characters with blanks
- send_mail() : mixed
- Send mail Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()
- strcut() : mixed
- Return part of a string, length and offset in bytes Compatible with mb_strcut()
- strimwidth() : mixed
- Get truncated string with specified width Compatible with mb_strimwidth()
- strlen() : mixed
- Determine the number of characters of a string Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()
- strpos() : mixed
- Find position of first occurance of a string in another string Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()
- strrpos() : mixed
- Find position of last occurance of a string in another string Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()
- strtolower() : mixed
- Convert a string to lower case Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()
- strtoupper() : mixed
- Convert a string to upper case Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()
- strwidth() : mixed
- Determine the width of a string Compatible with mb_strwidth()
- substr() : mixed
- Return part of a string, length and offset in characters Compatible with mb_substr(), an UTF-8 friendly replacement for substr()
- substr_count() : mixed
- Count the number of substring occurances Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()
Properties
$charsets
Character set translation support
public
mixed
$charsets
$iconv_sets
public
mixed
$iconv_sets
$mb_sets
public
mixed
$mb_sets
$utf8_tables
public
static mixed
$utf8_tables
= array('strtolower' => array("Z" => "z", "Y" => "y", "X" => "x", "W" => "w", "V" => "v", "U" => "u", "T" => "t", "S" => "s", "R" => "r", "Q" => "q", "P" => "p", "O" => "o", "N" => "n", "M" => "m", "L" => "l", "K" => "k", "J" => "j", "I" => "i", "H" => "h", "G" => "g", "F" => "f", "E" => "e", "D" => "d", "C" => "c", "B" => "b", "A" => "a", "Å" => "å", "K" => "k", "Ω" => "ω", "Ώ" => "ώ", "Ὼ" => "ὼ", "Ό" => "ό", "Ὸ" => "ὸ", "Ῥ" => "ῥ", "Ύ" => "ύ", "Ὺ" => "ὺ", "Ῡ" => "ῡ", "Ῠ" => "� ", "Ί" => "ί", "Ὶ" => "ὶ", "Ῑ" => "ῑ", "Ῐ" => "ῐ", "Ή" => "ή", "Ὴ" => "ὴ", "Έ" => "έ", "Ὲ" => "ὲ", "Ά" => "ά", "Ὰ" => "ὰ", "Ᾱ" => "ᾱ", "Ᾰ" => "ᾰ", "Ὧ" => "ὧ", "Ὦ" => "ὦ", "Ὥ" => "ὥ", "Ὤ" => "ὤ", "Ὣ" => "ὣ", "Ὢ" => "ὢ", "Ὡ" => "ὡ", "Ὠ" => "� ", "Ὗ" => "ὗ", "Ὕ" => "ὕ", "Ὓ" => "ὓ", "Ὑ" => "ὑ", "Ὅ" => "ὅ", "Ὄ" => "ὄ", "Ὃ" => "ὃ", "Ὂ" => "ὂ", "Ὁ" => "ὁ", "Ὀ" => "ὀ", "Ἷ" => "ἷ", "Ἶ" => "ἶ", "Ἵ" => "ἵ", "Ἴ" => "ἴ", "Ἳ" => "ἳ", "Ἲ" => "ἲ", "Ἱ" => "ἱ", "Ἰ" => "ἰ", "Ἧ" => "ἧ", "Ἦ" => "ἦ", "Ἥ" => "ἥ", "Ἤ" => "ἤ", "Ἣ" => "ἣ", "Ἢ" => "ἢ", "Ἡ" => "ἡ", "Ἠ" => "� ", "Ἕ" => "ἕ", "Ἔ" => "ἔ", "Ἓ" => "ἓ", "Ἒ" => "ἒ", "Ἑ" => "ἑ", "Ἐ" => "ἐ", "Ἇ" => "ἇ", "Ἆ" => "ἆ", "Ἅ" => "ἅ", "Ἄ" => "ἄ", "Ἃ" => "ἃ", "Ἂ" => "ἂ", "Ἁ" => "ἁ", "Ἀ" => "ἀ", "Ỹ" => "ỹ", "Ỷ" => "ỷ", "Ỵ" => "ỵ", "Ỳ" => "ỳ", "Ự" => "ự", "Ữ" => "ữ", "Ử" => "ử", "Ừ" => "ừ", "Ứ" => "ứ", "Ủ" => "ủ", "Ụ" => "ụ", "Ợ" => "ợ", "� " => "ỡ", "Ở" => "ở", "Ờ" => "ờ", "Ớ" => "ớ", "Ộ" => "ộ", "Ỗ" => "ỗ", "Ổ" => "ổ", "Ồ" => "ồ", "Ố" => "ố", "Ỏ" => "ỏ", "Ọ" => "ọ", "Ị" => "ị", "Ỉ" => "ỉ", "Ệ" => "ệ", "Ễ" => "ễ", "Ể" => "ể", "Ề" => "ề", "Ế" => "ế", "Ẽ" => "ẽ", "Ẻ" => "ẻ", "Ẹ" => "ẹ", "Ặ" => "ặ", "Ẵ" => "ẵ", "Ẳ" => "ẳ", "Ằ" => "ằ", "Ắ" => "ắ", "Ậ" => "ậ", "Ẫ" => "ẫ", "Ẩ" => "ẩ", "Ầ" => "ầ", "Ấ" => "ấ", "Ả" => "ả", "� " => "ạ", "Ẕ" => "ẕ", "Ẓ" => "ẓ", "Ẑ" => "ẑ", "Ẏ" => "ẏ", "Ẍ" => "ẍ", "Ẋ" => "ẋ", "Ẉ" => "ẉ", "Ẇ" => "ẇ", "Ẅ" => "ẅ", "Ẃ" => "ẃ", "Ẁ" => "ẁ", "Ṿ" => "ṿ", "Ṽ" => "ṽ", "Ṻ" => "ṻ", "Ṹ" => "ṹ", "Ṷ" => "ṷ", "Ṵ" => "ṵ", "Ṳ" => "ṳ", "Ṱ" => "ṱ", "Ṯ" => "ṯ", "Ṭ" => "ṭ", "Ṫ" => "ṫ", "Ṩ" => "ṩ", "Ṧ" => "ṧ", "Ṥ" => "ṥ", "Ṣ" => "ṣ", "� " => "ṡ", "Ṟ" => "ṟ", "Ṝ" => "ṝ", "Ṛ" => "ṛ", "Ṙ" => "ṙ", "Ṗ" => "ṗ", "Ṕ" => "ṕ", "Ṓ" => "ṓ", "Ṑ" => "ṑ", "Ṏ" => "ṏ", "Ṍ" => "ṍ", "Ṋ" => "ṋ", "Ṉ" => "ṉ", "Ṇ" => "ṇ", "Ṅ" => "ṅ", "Ṃ" => "ṃ", "Ṁ" => "ṁ", "Ḿ" => "ḿ", "Ḽ" => "ḽ", "Ḻ" => "ḻ", "Ḹ" => "ḹ", "Ḷ" => "ḷ", "Ḵ" => "ḵ", "Ḳ" => "ḳ", "Ḱ" => "ḱ", "Ḯ" => "ḯ", "Ḭ" => "ḭ", "Ḫ" => "ḫ", "Ḩ" => "ḩ", "Ḧ" => "ḧ", "Ḥ" => "ḥ", "Ḣ" => "ḣ", "� " => "ḡ", "Ḟ" => "ḟ", "Ḝ" => "ḝ", "Ḛ" => "ḛ", "Ḙ" => "ḙ", "Ḗ" => "ḗ", "Ḕ" => "ḕ", "Ḓ" => "ḓ", "Ḑ" => "ḑ", "Ḏ" => "ḏ", "Ḍ" => "ḍ", "Ḋ" => "ḋ", "Ḉ" => "ḉ", "Ḇ" => "ḇ", "Ḅ" => "ḅ", "Ḃ" => "ḃ", "Ḁ" => "ḁ", "Ֆ" => "ֆ", "Օ" => "օ", "Ք" => "ք", "Փ" => "փ", "Ւ" => "ւ", "Ց" => "ց", "Ր" => "ր", "Տ" => "տ", "Վ" => "վ", "Ս" => "ս", "Ռ" => "ռ", "Ջ" => "ջ", "Պ" => "պ", "Չ" => "չ", "Ո" => "ո", "Շ" => "շ", "Ն" => "ն", "Յ" => "յ", "Մ" => "մ", "Ճ" => "ճ", "Ղ" => "ղ", "Ձ" => "ձ", "Հ" => "հ", "Կ" => "կ", "Ծ" => "ծ", "Խ" => "խ", "Լ" => "լ", "Ի" => "ի", "Ժ" => "ժ", "Թ" => "թ", "Ը" => "ը", "Է" => "է", "Զ" => "զ", "Ե" => "ե", "Դ" => "դ", "Գ" => "գ", "Բ" => "բ", "Ա" => "ա", "Ԏ" => "ԏ", "Ԍ" => "ԍ", "Ԋ" => "ԋ", "Ԉ" => "ԉ", "Ԇ" => "ԇ", "Ԅ" => "ԅ", "Ԃ" => "ԃ", "Ԁ" => "ԁ", "Ӹ" => "ӹ", "Ӵ" => "ӵ", "Ӳ" => "ӳ", "Ӱ" => "ӱ", "Ӯ" => "ӯ", "Ӭ" => "ӭ", "Ӫ" => "ӫ", "Ө" => "ө", "Ӧ" => "ӧ", "Ӥ" => "ӥ", "Ӣ" => "ӣ", "� " => "ӡ", "Ӟ" => "ӟ", "Ӝ" => "ӝ", "Ӛ" => "ӛ", "Ә" => "ә", "Ӗ" => "ӗ", "Ӕ" => "ӕ", "Ӓ" => "ӓ", "Ӑ" => "ӑ", "Ӎ" => "ӎ", "Ӌ" => "ӌ", "Ӊ" => "ӊ", "Ӈ" => "ӈ", "Ӆ" => "ӆ", "Ӄ" => "ӄ", "Ӂ" => "ӂ", "Ҿ" => "ҿ", "Ҽ" => "ҽ", "Һ" => "һ", "Ҹ" => "ҹ", "Ҷ" => "ҷ", "Ҵ" => "ҵ", "Ҳ" => "ҳ", "Ұ" => "ұ", "Ү" => "ү", "Ҭ" => "ҭ", "Ҫ" => "ҫ", "Ҩ" => "ҩ", "Ҧ" => "ҧ", "Ҥ" => "ҥ", "Ң" => "ң", "� " => "ҡ", "Ҟ" => "ҟ", "Ҝ" => "ҝ", "Қ" => "қ", "Ҙ" => "ҙ", "Җ" => "җ", "Ҕ" => "ҕ", "Ғ" => "ғ", "Ґ" => "ґ", "Ҏ" => "ҏ", "Ҍ" => "ҍ", "Ҋ" => "ҋ", "Ҁ" => "ҁ", "Ѿ" => "ѿ", "Ѽ" => "ѽ", "Ѻ" => "ѻ", "Ѹ" => "ѹ", "Ѷ" => "ѷ", "Ѵ" => "ѵ", "Ѳ" => "ѳ", "Ѱ" => "ѱ", "Ѯ" => "ѯ", "Ѭ" => "ѭ", "Ѫ" => "ѫ", "Ѩ" => "ѩ", "Ѧ" => "ѧ", "Ѥ" => "ѥ", "Ѣ" => "ѣ", "� " => "ѡ", "Я" => "я", "Ю" => "ю", "Э" => "э", "Ь" => "ь", "Ы" => "ы", "Ъ" => "ъ", "Щ" => "щ", "Ш" => "ш", "Ч" => "ч", "Ц" => "ц", "Х" => "х", "Ф" => "ф", "У" => "у", "Т" => "т", "С" => "с", "� " => "р", "П" => "п", "О" => "о", "Н" => "н", "М" => "м", "Л" => "л", "К" => "к", "Й" => "й", "И" => "и", "З" => "з", "Ж" => "ж", "Е" => "е", "Д" => "д", "Г" => "г", "В" => "в", "Б" => "б", "А" => "а", "Џ" => "џ", "Ў" => "ў", "Ѝ" => "ѝ", "Ќ" => "ќ", "Ћ" => "ћ", "Њ" => "њ", "Љ" => "љ", "Ј" => "ј", "Ї" => "ї", "І" => "і", "Ѕ" => "ѕ", "Є" => "є", "Ѓ" => "ѓ", "Ђ" => "ђ", "Ё" => "ё", "Ѐ" => "ѐ", "ϴ" => "θ", "Ϯ" => "ϯ", "Ϭ" => "ϭ", "Ϫ" => "ϫ", "Ϩ" => "ϩ", "Ϧ" => "ϧ", "Ϥ" => "ϥ", "Ϣ" => "ϣ", "� " => "ϡ", "Ϟ" => "ϟ", "Ϝ" => "ϝ", "Ϛ" => "ϛ", "Ϙ" => "ϙ", "Ϋ" => "ϋ", "Ϊ" => "ϊ", "Ω" => "ω", "Ψ" => "ψ", "Χ" => "χ", "Φ" => "φ", "Υ" => "υ", "Τ" => "τ", "Σ" => "σ", "Ρ" => "ρ", "� " => "π", "Ο" => "ο", "Ξ" => "ξ", "Ν" => "ν", "Μ" => "μ", "Λ" => "λ", "Κ" => "κ", "Ι" => "ι", "Θ" => "θ", "Η" => "η", "Ζ" => "ζ", "Ε" => "ε", "Δ" => "δ", "Γ" => "γ", "Β" => "β", "Α" => "α", "Ώ" => "ώ", "Ύ" => "ύ", "Ό" => "ό", "Ί" => "ί", "Ή" => "ή", "Έ" => "έ", "Ά" => "ά", "Ȳ" => "ȳ", "Ȱ" => "ȱ", "Ȯ" => "ȯ", "Ȭ" => "ȭ", "Ȫ" => "ȫ", "Ȩ" => "ȩ", "Ȧ" => "ȧ", "Ȥ" => "ȥ", "Ȣ" => "ȣ", "� " => "ƞ", "Ȟ" => "ȟ", "Ȝ" => "ȝ", "Ț" => "ț", "Ș" => "ș", "Ȗ" => "ȗ", "Ȕ" => "ȕ", "Ȓ" => "ȓ", "Ȑ" => "ȑ", "Ȏ" => "ȏ", "Ȍ" => "ȍ", "Ȋ" => "ȋ", "Ȉ" => "ȉ", "Ȇ" => "ȇ", "Ȅ" => "ȅ", "Ȃ" => "ȃ", "Ȁ" => "ȁ", "Ǿ" => "ǿ", "Ǽ" => "ǽ", "Ǻ" => "ǻ", "Ǹ" => "ǹ", "Ƿ" => "ƿ", "Ƕ" => "ƕ", "Ǵ" => "ǵ", "DZ" => "dz", "Ǯ" => "ǯ", "Ǭ" => "ǭ", "Ǫ" => "ǫ", "Ǩ" => "ǩ", "Ǧ" => "ǧ", "Ǥ" => "ǥ", "Ǣ" => "ǣ", "� " => "ǡ", "Ǟ" => "ǟ", "Ǜ" => "ǜ", "Ǚ" => "ǚ", "Ǘ" => "ǘ", "Ǖ" => "ǖ", "Ǔ" => "ǔ", "Ǒ" => "ǒ", "Ǐ" => "ǐ", "Ǎ" => "ǎ", "NJ" => "nj", "LJ" => "lj", "DŽ" => "dž", "Ƽ" => "ƽ", "Ƹ" => "ƹ", "Ʒ" => "ʒ", "Ƶ" => "ƶ", "Ƴ" => "ƴ", "Ʋ" => "ʋ", "Ʊ" => "ʊ", "Ư" => "ư", "Ʈ" => "ʈ", "Ƭ" => "ƭ", "Ʃ" => "ʃ", "Ƨ" => "ƨ", "Ʀ" => "ʀ", "Ƥ" => "ƥ", "Ƣ" => "ƣ", "� " => "ơ", "Ɵ" => "ɵ", "Ɲ" => "ɲ", "Ɯ" => "ɯ", "Ƙ" => "ƙ", "Ɨ" => "ɨ", "Ɩ" => "ɩ", "Ɣ" => "ɣ", "Ɠ" => "� ", "Ƒ" => "ƒ", "Ɛ" => "ɛ", "Ə" => "ə", "Ǝ" => "ǝ", "Ƌ" => "ƌ", "Ɗ" => "ɗ", "Ɖ" => "ɖ", "Ƈ" => "ƈ", "Ɔ" => "ɔ", "Ƅ" => "ƅ", "Ƃ" => "ƃ", "Ɓ" => "ɓ", "Ž" => "ž", "Ż" => "ż", "Ź" => "ź", "Ÿ" => "ÿ", "Ŷ" => "ŷ", "Ŵ" => "ŵ", "Ų" => "ų", "Ű" => "ű", "Ů" => "ů", "Ŭ" => "ŭ", "Ū" => "ū", "Ũ" => "ũ", "Ŧ" => "ŧ", "Ť" => "ť", "Ţ" => "ţ", "� " => "š", "Ş" => "ş", "Ŝ" => "ŝ", "Ś" => "ś", "Ř" => "ř", "Ŗ" => "ŗ", "Ŕ" => "ŕ", "Œ" => "œ", "Ő" => "ő", "Ŏ" => "ŏ", "Ō" => "ō", "Ŋ" => "ŋ", "Ň" => "ň", "Ņ" => "ņ", "Ń" => "ń", "Ł" => "ł", "Ŀ" => "ŀ", "Ľ" => "ľ", "Ļ" => "ļ", "Ĺ" => "ĺ", "Ķ" => "ķ", "Ĵ" => "ĵ", "IJ" => "ij", "İ" => "i", "Į" => "į", "Ĭ" => "ĭ", "Ī" => "ī", "Ĩ" => "ĩ", "Ħ" => "ħ", "Ĥ" => "ĥ", "Ģ" => "ģ", "� " => "ġ", "Ğ" => "ğ", "Ĝ" => "ĝ", "Ě" => "ě", "Ę" => "ę", "Ė" => "ė", "Ĕ" => "ĕ", "Ē" => "ē", "Đ" => "đ", "Ď" => "ď", "Č" => "č", "Ċ" => "ċ", "Ĉ" => "ĉ", "Ć" => "ć", "Ą" => "ą", "Ă" => "ă", "Ā" => "ā", "Þ" => "þ", "Ý" => "ý", "Ü" => "ü", "Û" => "û", "Ú" => "ú", "Ù" => "ù", "Ø" => "ø", "Ö" => "ö", "Õ" => "õ", "Ô" => "ô", "Ó" => "ó", "Ò" => "ò", "Ñ" => "ñ", "Ð" => "ð", "Ï" => "ï", "Î" => "î", "Í" => "í", "Ì" => "ì", "Ë" => "ë", "Ê" => "ê", "É" => "é", "È" => "è", "Ç" => "ç", "Æ" => "æ", "Å" => "å", "Ä" => "ä", "Ã" => "ã", "Â" => "â", "Á" => "á", "À" => "� ", "Z" => "z", "Y" => "y", "X" => "x", "W" => "w", "V" => "v", "U" => "u", "T" => "t", "S" => "s", "R" => "r", "Q" => "q", "P" => "p", "O" => "o", "N" => "n", "M" => "m", "L" => "l", "K" => "k", "J" => "j", "I" => "i", "H" => "h", "G" => "g", "F" => "f", "E" => "e", "D" => "d", "C" => "c", "B" => "b", "A" => "a"), 'strtoupper' => array("z" => "Z", "y" => "Y", "x" => "X", "w" => "W", "v" => "V", "u" => "U", "t" => "T", "s" => "S", "r" => "R", "q" => "Q", "p" => "P", "o" => "O", "n" => "N", "m" => "M", "l" => "L", "k" => "K", "j" => "J", "i" => "I", "h" => "H", "g" => "G", "f" => "F", "e" => "E", "d" => "D", "c" => "C", "b" => "B", "a" => "A", "ῳ" => "ῼ", "ῥ" => "Ῥ", "ῡ" => "Ῡ", "� " => "Ῠ", "ῑ" => "Ῑ", "ῐ" => "Ῐ", "ῃ" => "ῌ", "ι" => "Ι", "ᾳ" => "ᾼ", "ᾱ" => "Ᾱ", "ᾰ" => "Ᾰ", "ᾧ" => "ᾯ", "ᾦ" => "ᾮ", "ᾥ" => "ᾭ", "ᾤ" => "ᾬ", "ᾣ" => "ᾫ", "ᾢ" => "ᾪ", "ᾡ" => "ᾩ", "� " => "ᾨ", "ᾗ" => "ᾟ", "ᾖ" => "ᾞ", "ᾕ" => "ᾝ", "ᾔ" => "ᾜ", "ᾓ" => "ᾛ", "ᾒ" => "ᾚ", "ᾑ" => "ᾙ", "ᾐ" => "ᾘ", "ᾇ" => "ᾏ", "ᾆ" => "ᾎ", "ᾅ" => "ᾍ", "ᾄ" => "ᾌ", "ᾃ" => "ᾋ", "ᾂ" => "ᾊ", "ᾁ" => "ᾉ", "ᾀ" => "ᾈ", "ώ" => "Ώ", "ὼ" => "Ὼ", "ύ" => "Ύ", "ὺ" => "Ὺ", "ό" => "Ό", "ὸ" => "Ὸ", "ί" => "Ί", "ὶ" => "Ὶ", "ή" => "Ή", "ὴ" => "Ὴ", "έ" => "Έ", "ὲ" => "Ὲ", "ά" => "Ά", "ὰ" => "Ὰ", "ὧ" => "Ὧ", "ὦ" => "Ὦ", "ὥ" => "Ὥ", "ὤ" => "Ὤ", "ὣ" => "Ὣ", "ὢ" => "Ὢ", "ὡ" => "Ὡ", "� " => "Ὠ", "ὗ" => "Ὗ", "ὕ" => "Ὕ", "ὓ" => "Ὓ", "ὑ" => "Ὑ", "ὅ" => "Ὅ", "ὄ" => "Ὄ", "ὃ" => "Ὃ", "ὂ" => "Ὂ", "ὁ" => "Ὁ", "ὀ" => "Ὀ", "ἷ" => "Ἷ", "ἶ" => "Ἶ", "ἵ" => "Ἵ", "ἴ" => "Ἴ", "ἳ" => "Ἳ", "ἲ" => "Ἲ", "ἱ" => "Ἱ", "ἰ" => "Ἰ", "ἧ" => "Ἧ", "ἦ" => "Ἦ", "ἥ" => "Ἥ", "ἤ" => "Ἤ", "ἣ" => "Ἣ", "ἢ" => "Ἢ", "ἡ" => "Ἡ", "� " => "Ἠ", "ἕ" => "Ἕ", "ἔ" => "Ἔ", "ἓ" => "Ἓ", "ἒ" => "Ἒ", "ἑ" => "Ἑ", "ἐ" => "Ἐ", "ἇ" => "Ἇ", "ἆ" => "Ἆ", "ἅ" => "Ἅ", "ἄ" => "Ἄ", "ἃ" => "Ἃ", "ἂ" => "Ἂ", "ἁ" => "Ἁ", "ἀ" => "Ἀ", "ỹ" => "Ỹ", "ỷ" => "Ỷ", "ỵ" => "Ỵ", "ỳ" => "Ỳ", "ự" => "Ự", "ữ" => "Ữ", "ử" => "Ử", "ừ" => "Ừ", "ứ" => "Ứ", "ủ" => "Ủ", "ụ" => "Ụ", "ợ" => "Ợ", "ỡ" => "� ", "ở" => "Ở", "ờ" => "Ờ", "ớ" => "Ớ", "ộ" => "Ộ", "ỗ" => "Ỗ", "ổ" => "Ổ", "ồ" => "Ồ", "ố" => "Ố", "ỏ" => "Ỏ", "ọ" => "Ọ", "ị" => "Ị", "ỉ" => "Ỉ", "ệ" => "Ệ", "ễ" => "Ễ", "ể" => "Ể", "ề" => "Ề", "ế" => "Ế", "ẽ" => "Ẽ", "ẻ" => "Ẻ", "ẹ" => "Ẹ", "ặ" => "Ặ", "ẵ" => "Ẵ", "ẳ" => "Ẳ", "ằ" => "Ằ", "ắ" => "Ắ", "ậ" => "Ậ", "ẫ" => "Ẫ", "ẩ" => "Ẩ", "ầ" => "Ầ", "ấ" => "Ấ", "ả" => "Ả", "ạ" => "� ", "ẛ" => "� ", "ẕ" => "Ẕ", "ẓ" => "Ẓ", "ẑ" => "Ẑ", "ẏ" => "Ẏ", "ẍ" => "Ẍ", "ẋ" => "Ẋ", "ẉ" => "Ẉ", "ẇ" => "Ẇ", "ẅ" => "Ẅ", "ẃ" => "Ẃ", "ẁ" => "Ẁ", "ṿ" => "Ṿ", "ṽ" => "Ṽ", "ṻ" => "Ṻ", "ṹ" => "Ṹ", "ṷ" => "Ṷ", "ṵ" => "Ṵ", "ṳ" => "Ṳ", "ṱ" => "Ṱ", "ṯ" => "Ṯ", "ṭ" => "Ṭ", "ṫ" => "Ṫ", "ṩ" => "Ṩ", "ṧ" => "Ṧ", "ṥ" => "Ṥ", "ṣ" => "Ṣ", "ṡ" => "� ", "ṟ" => "Ṟ", "ṝ" => "Ṝ", "ṛ" => "Ṛ", "ṙ" => "Ṙ", "ṗ" => "Ṗ", "ṕ" => "Ṕ", "ṓ" => "Ṓ", "ṑ" => "Ṑ", "ṏ" => "Ṏ", "ṍ" => "Ṍ", "ṋ" => "Ṋ", "ṉ" => "Ṉ", "ṇ" => "Ṇ", "ṅ" => "Ṅ", "ṃ" => "Ṃ", "ṁ" => "Ṁ", "ḿ" => "Ḿ", "ḽ" => "Ḽ", "ḻ" => "Ḻ", "ḹ" => "Ḹ", "ḷ" => "Ḷ", "ḵ" => "Ḵ", "ḳ" => "Ḳ", "ḱ" => "Ḱ", "ḯ" => "Ḯ", "ḭ" => "Ḭ", "ḫ" => "Ḫ", "ḩ" => "Ḩ", "ḧ" => "Ḧ", "ḥ" => "Ḥ", "ḣ" => "Ḣ", "ḡ" => "� ", "ḟ" => "Ḟ", "ḝ" => "Ḝ", "ḛ" => "Ḛ", "ḙ" => "Ḙ", "ḗ" => "Ḗ", "ḕ" => "Ḕ", "ḓ" => "Ḓ", "ḑ" => "Ḑ", "ḏ" => "Ḏ", "ḍ" => "Ḍ", "ḋ" => "Ḋ", "ḉ" => "Ḉ", "ḇ" => "Ḇ", "ḅ" => "Ḅ", "ḃ" => "Ḃ", "ḁ" => "Ḁ", "ֆ" => "Ֆ", "օ" => "Օ", "ք" => "Ք", "փ" => "Փ", "ւ" => "Ւ", "ց" => "Ց", "ր" => "Ր", "տ" => "Տ", "վ" => "Վ", "ս" => "Ս", "ռ" => "Ռ", "ջ" => "Ջ", "պ" => "Պ", "չ" => "Չ", "ո" => "Ո", "շ" => "Շ", "ն" => "Ն", "յ" => "Յ", "մ" => "Մ", "ճ" => "Ճ", "ղ" => "Ղ", "ձ" => "Ձ", "հ" => "Հ", "կ" => "Կ", "ծ" => "Ծ", "խ" => "Խ", "լ" => "Լ", "ի" => "Ի", "ժ" => "Ժ", "թ" => "Թ", "ը" => "Ը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ѯ" => "Ѯ", "ѭ" => "Ѭ", "ѫ" => "Ѫ", "ѩ" => "Ѩ", "ѧ" => "Ѧ", "ѥ" => "Ѥ", "ѣ" => "Ѣ", "ѡ" => "� ", "џ" => "Џ", "ў" => "Ў", "ѝ" => "Ѝ", "ќ" => "Ќ", "ћ" => "Ћ", "њ" => "Њ", "љ" => "Љ", "ј" => "Ј", "ї" => "Ї", "і" => "І", "ѕ" => "Ѕ", "є" => "Є", "ѓ" => "Ѓ", "ђ" => "Ђ", "ё" => "Ё", "ѐ" => "Ѐ", "я" => "Я", "ю" => "Ю", "э" => "Э", "ь" => "Ь", "ы" => "Ы", "ъ" => "Ъ", "щ" => "Щ", "ш" => "Ш", "ч" => "Ч", "ц" => "Ц", "х" => "Х", "ф" => "Ф", "у" => "У", "т" => "Т", "с" => "С", "р" => "� ", "п" => "П", "о" => "О", "н" => "Н", "м" => "М", "л" => "Л", "к" => "К", "й" => "Й", "и" => "И", "з" => "З", "ж" => "Ж", "е" => "Е", "д" => "Д", "г" => "Г", "в" => "В", "б" => "Б", "а" => "А", "ϵ" => "Ε", "ϲ" => "Σ", "ϱ" => "Ρ", "ϰ" => "Κ", "ϯ" => "Ϯ", "ϭ" => "Ϭ", "ϫ" => "Ϫ", "ϩ" => "Ϩ", "ϧ" => "Ϧ", "ϥ" => "Ϥ", "ϣ" => "Ϣ", "ϡ" => "� ", "ϟ" => "Ϟ", "ϝ" => "Ϝ", "ϛ" => "Ϛ", "ϙ" => "Ϙ", "ϖ" => "� ", "ϕ" => "Φ", "ϑ" => "Θ", "ϐ" => "Β", "ώ" => "Ώ", "ύ" => "Ύ", "ό" => "Ό", "ϋ" => "Ϋ", "ϊ" => "Ϊ", "ω" => "Ω", "ψ" => "Ψ", "χ" => "Χ", "φ" => "Φ", "υ" => "Υ", "τ" => "Τ", "σ" => "Σ", "ς" => "Σ", "ρ" => "Ρ", "π" => "� ", "ο" => "Ο", "ξ" => "Ξ", "ν" => "Ν", "μ" => "Μ", "λ" =>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ǔ", "ǒ" => "Ǒ", "ǐ" => "Ǐ", "ǎ" => "Ǎ", "nj" => "Nj", "lj" => "Lj", "dž" => "Dž", "ƿ" => "Ƿ", "ƽ" => "Ƽ", "ƹ" => "Ƹ", "ƶ" => "Ƶ", "ƴ" => "Ƴ", "ư" => "Ư", "ƭ" => "Ƭ", "ƨ" => "Ƨ", "ƥ" => "Ƥ", "ƣ" => "Ƣ", "ơ" => "� ", "ƞ" => "� ", "ƙ" => "Ƙ", "ƕ" => "Ƕ", "ƒ" => "Ƒ", "ƌ" => "Ƌ", "ƈ" => "Ƈ", "ƅ" => "Ƅ", "ƃ" => "Ƃ", "ſ" => "S", "ž" => "Ž", "ż" => "Ż", "ź" => "Ź", "ŷ" => "Ŷ", "ŵ" => "Ŵ", "ų" => "Ų", "ű" => "Ű", "ů" => "Ů", "ŭ" => "Ŭ", "ū" => "Ū", "ũ" => "Ũ", "ŧ" => "Ŧ", "ť" => "Ť", "ţ" => "Ţ", "š" => "� ", "ş" => "Ş", "ŝ" => "Ŝ", "ś" => "Ś", "ř" => "Ř", "ŗ" => "Ŗ", "ŕ" => "Ŕ", "œ" => "Œ", "ő" => "Ő", "ŏ" => "Ŏ", "ō" => "Ō", "ŋ" => "Ŋ", "ň" => "Ň", "ņ" => "Ņ", "ń" => "Ń", "ł" => "Ł", "ŀ" => "Ŀ", "ľ" => "Ľ", "ļ" => "Ļ", "ĺ" => "Ĺ", "ķ" => "Ķ", "ĵ" => "Ĵ", "ij" => "IJ", "ı" => "I", "į" => "Į", "ĭ" => "Ĭ", "ī" => "Ī", "ĩ" => "Ĩ", "ħ" => "Ħ", "ĥ" => "Ĥ", "ģ" => "Ģ", "ġ" => "� ", "ğ" => "Ğ", "ĝ" => "Ĝ", "ě" => "Ě", "ę" => "Ę", "ė" => "Ė", "ĕ" => "Ĕ", "ē" => "Ē", "đ" => "Đ", "ď" => "Ď", "č" => "Č", "ċ" => "Ċ", "ĉ" => "Ĉ", "ć" => "Ć", "ą" => "Ą", "ă" => "Ă", "ā" => "Ā", "ÿ" => "Ÿ", "þ" => "Þ", "ý" => "Ý", "ü" => "Ü", "û" => "Û", "ú" => "Ú", "ù" => "Ù", "ø" => "Ø", "ö" => "Ö", "õ" => "Õ", "ô" => "Ô", "ó" => "Ó", "ò" => "Ò", "ñ" => "Ñ", "ð" => "Ð", "ï" => "Ï", "î" => "Î", "í" => "Í", "ì" => "Ì", "ë" => "Ë", "ê" => "Ê", "é" => "É", "è" => "È", "ç" => "Ç", "æ" => "Æ", "å" => "Å", "ä" => "Ä", "ã" => "Ã", "â" => "Â", "á" => "Á", "� " => "À", "µ" => "Μ", "z" => "Z", "y" => "Y", "x" => "X", "w" => "W", "v" => "V", "u" => "U", "t" => "T", "s" => "S", "r" => "R", "q" => "Q", "p" => "P", "o" => "O", "n" => "N", "m" => "M", "l" => "L", "k" => "K", "j" => "J", "i" => "I", "h" => "H", "g" => "G", "f" => "F", "e" => "E", "d" => "D", "c" => "C", "b" => "B", "a" => "A"))
Methods
__construct()
public
__construct() : mixed
convert()
Convert a foreign charset encoding from or to UTF-8
public
convert(mixed $string[, mixed $encoding = NULL ][, mixed $destination = 'UTF-8' ]) : mixed
Parameters
- $string : mixed
- $encoding : mixed = NULL
- $destination : mixed = 'UTF-8'
detect()
Detect the encoding of the string
public
static detect(mixed $string) : mixed
Parameters
- $string : mixed
encode_javascript()
Prepare an UTF-8 string for use in JavaScript
public
static encode_javascript(mixed $string) : mixed
Parameters
- $string : mixed
encode_mimeheader()
Encode a string for use in a MIME header Simplied replacement for mb_encode_mimeheader()
public
static encode_mimeheader(mixed $str) : mixed
Parameters
- $str : mixed
encode_numericentity()
Encode an UTF-8 string with numeric entities Simplied replacement for mb_encode_numericentity()
public
static encode_numericentity(mixed $string) : mixed
Parameters
- $string : mixed
sanitize()
replaces invalid UTF-8 characters with blanks
public
static sanitize(mixed $text) : mixed
Parameters
- $text : mixed
send_mail()
Send mail Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()
public
static send_mail(mixed $to, mixed $subject, mixed $message[, mixed $additional_headers = '' ][, mixed $additional_parameter = '' ]) : mixed
Parameters
- $to : mixed
- $subject : mixed
- $message : mixed
- $additional_headers : mixed = ''
- $additional_parameter : mixed = ''
strcut()
Return part of a string, length and offset in bytes Compatible with mb_strcut()
public
static strcut(mixed $str, mixed $start[, mixed $length = NULL ]) : mixed
Parameters
- $str : mixed
- $start : mixed
- $length : mixed = NULL
strimwidth()
Get truncated string with specified width Compatible with mb_strimwidth()
public
static strimwidth(mixed $str, mixed $start, mixed $width[, mixed $trimmarker = '' ]) : mixed
Parameters
- $str : mixed
- $start : mixed
- $width : mixed
- $trimmarker : mixed = ''
strlen()
Determine the number of characters of a string Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()
public
static strlen(mixed $str) : mixed
Parameters
- $str : mixed
strpos()
Find position of first occurance of a string in another string Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()
public
static strpos(mixed $haystack, mixed $needle[, mixed $offset = 0 ]) : mixed
Parameters
- $haystack : mixed
- $needle : mixed
- $offset : mixed = 0
strrpos()
Find position of last occurance of a string in another string Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()
public
static strrpos(mixed $haystack, mixed $needle) : mixed
Parameters
- $haystack : mixed
- $needle : mixed
strtolower()
Convert a string to lower case Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()
public
static strtolower(mixed $str) : mixed
Parameters
- $str : mixed
strtoupper()
Convert a string to upper case Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()
public
static strtoupper(mixed $str) : mixed
Parameters
- $str : mixed
strwidth()
Determine the width of a string Compatible with mb_strwidth()
public
static strwidth(mixed $str) : mixed
Parameters
- $str : mixed
substr()
Return part of a string, length and offset in characters Compatible with mb_substr(), an UTF-8 friendly replacement for substr()
public
static substr(mixed $str, mixed $start[, mixed $length = NULL ]) : mixed
Parameters
- $str : mixed
- $start : mixed
- $length : mixed = NULL
substr_count()
Count the number of substring occurances Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()
public
static substr_count(mixed $haystack, mixed $needle) : mixed
Parameters
- $haystack : mixed
- $needle : mixed