Lines Matching refs:charset
1038 'source charset: '
1677 $charset = null;
1681 $success = preg_match('/charset=(.+)/', $contentTypeHeader, $matches);
1683 $charset = $matches[1];
1686 'header content-type found charset of: '
1687 . $charset
1693 if (empty($charset)) {
1708 '/charset=(.+)/i',
1714 $charset = $matches[1];
1725 $charset = 'ISO-8859-1';
1731 if (empty($charset)) {
1733 if ($meta = $this->root->find('meta[charset]', 0)) {
1734 $charset = $meta->charset;
1736 $debug_object->debug_log(2, 'meta charset: ' . $charset);
1741 if (empty($charset)) {
1742 // Try to guess the charset based on the content
1768 // which case we can simply assume it is the other charset.
1775 $charset = $encoding;
1777 $debug_object->debug_log(2, 'mb_detect: ' . $charset);
1783 if (empty($charset)) {
1784 // Assume it's UTF-8 as it is the most likely charset to be used
1785 $charset = 'UTF-8';
1787 $debug_object->debug_log(2, 'No match found, assume ' . $charset);
1793 if ((strtolower($charset) == 'iso-8859-1')
1794 || (strtolower($charset) == 'latin1')
1795 || (strtolower($charset) == 'latin-1')) {
1796 $charset = 'CP1252';
1799 'replacing ' . $charset . ' with CP1252 as its a superset'
1805 $debug_object->debug_log(1, 'EXIT - ' . $charset);
1808 return $this->_charset = $charset;
2304 case 'charset':