Lines Matching refs:charset
1034 'source charset: '
1671 $charset = null;
1675 $success = preg_match('/charset=(.+)/', $contentTypeHeader, $matches);
1677 $charset = $matches[1];
1680 'header content-type found charset of: '
1681 . $charset
1687 if (empty($charset)) {
1702 '/charset=(.+)/i',
1708 $charset = $matches[1];
1719 $charset = 'ISO-8859-1';
1725 if (empty($charset)) {
1727 if ($meta = $this->root->find('meta[charset]', 0)) {
1728 $charset = $meta->charset;
1730 $debug_object->debug_log(2, 'meta charset: ' . $charset);
1735 if (empty($charset)) {
1736 // Try to guess the charset based on the content
1762 // which case we can simply assume it is the other charset.
1769 $charset = $encoding;
1771 $debug_object->debug_log(2, 'mb_detect: ' . $charset);
1777 if (empty($charset)) {
1778 // Assume it's UTF-8 as it is the most likely charset to be used
1779 $charset = 'UTF-8';
1781 $debug_object->debug_log(2, 'No match found, assume ' . $charset);
1787 if ((strtolower($charset) == 'iso-8859-1')
1788 || (strtolower($charset) == 'latin1')
1789 || (strtolower($charset) == 'latin-1')) {
1790 $charset = 'CP1252';
1793 'replacing ' . $charset . ' with CP1252 as its a superset'
1799 $debug_object->debug_log(1, 'EXIT - ' . $charset);
1802 return $this->_charset = $charset;
2298 case 'charset':