Esempio n. 1
0
function all_convert($s_String)
{
    // Array for entities
    $umlaute = array('„', '“', '–', ' \\"', '–', '—', '‘', '’', '“', '”', '„', '•', '…', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', '�', utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), utf8_encode('�'), chr(128), chr(129), chr(130), chr(131), chr(132), chr(133), chr(134), chr(135), chr(136), chr(137), chr(138), chr(139), chr(140), chr(141), chr(142), chr(143), chr(144), chr(145), chr(146), chr(147), chr(148), chr(149), chr(150), chr(151), chr(152), chr(153), chr(154), chr(155), chr(156), chr(157), chr(158), chr(159), chr(160), chr(161), chr(162), chr(163), chr(164), chr(165), chr(166), chr(167), chr(168), chr(169), chr(170), chr(171), chr(172), chr(173), chr(174), chr(175), chr(176), chr(177), chr(178), chr(179), chr(180), chr(181), chr(182), chr(183), chr(184), chr(185), chr(186), chr(187), chr(188), chr(189), chr(190), chr(191), chr(192), chr(193), chr(194), chr(195), chr(196), chr(197), chr(198), chr(199), chr(200), chr(201), chr(202), chr(203), chr(204), chr(205), chr(206), chr(207), chr(208), chr(209), chr(210), chr(211), chr(212), chr(213), chr(214), chr(215), chr(216), chr(217), chr(218), chr(219), chr(220), chr(221), chr(222), chr(223), chr(224), chr(225), chr(226), chr(227), chr(228), chr(229), chr(230), chr(231), chr(232), chr(233), chr(234), chr(235), chr(236), chr(237), chr(238), chr(239), chr(240), chr(241), chr(242), chr(243), chr(244), chr(245), chr(246), chr(247), chr(248), chr(249), chr(250), chr(251), chr(252), chr(253), chr(254), chr(255), chr(256));
    $htmlcode = array('„', '“', '–', ' "', '–', '—', '‘', '’', '“', '”', '„', '•', '…', '€', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 'Ž', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 'ž', 'Ÿ', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', '€', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 'Ž', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 'ž', 'Ÿ', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', '€', '', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', '', 'Ž', '', '', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '', 'ž', 'Ÿ', ' ', '¡', '¡', '¡', '¡', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '�­', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ');
    //$s_String = str_replace($umlaute, $htmlcode, $s_String);
    if (version_compare(phpversion(), '5.0.0', '>=')) {
        $s_String = utf8_encode(html_entity_decode(str_replace($umlaute, $htmlcode, $s_String)));
    } else {
        $s_String = utf8_encode(RSSImport_html_entity_decode_php4(str_replace($umlaute, $htmlcode, $s_String)));
    }
    // … , …
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\xA6~', '…', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x82\\xC2\\xA6~', '…', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xC2\\xA6~', '…', $s_String);
    // — , —
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x80\\x9D~', '—', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\x9D~', '—', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x80\\x9D~', '—', $s_String);
    // – , –
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x80\\x9C~', '–', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\x93~', '–', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x80\\x9C~', '–', $s_String);
    // ’ , ’
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x84\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x80\\x9E\\xC2\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x84\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xD0\\xBF\\xD1\\x97\\xD0\\x85~', '’', $s_String);
    // ‘ , ‘
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xCB\\x9C~', '‘', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x8B\\xC5\\x93~', '‘', $s_String);
    // ” , ”
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\x9D~', '”', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x82\\xC2\\x9D~', '”', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xD1\\x9C~', '”', $s_String);
    // “ , “
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\x93~', '“', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x85\\xE2\\x80\\x9C~', '“', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xD1\\x9A~', '“', $s_String);
    // ™ , ™
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x80\\x9E\\xC2\\xA2~', '™', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\xBE\\xC3\\x82\\xC2\\xA2~', '™', $s_String);
    // th
    $s_String = preg_replace('~t\\xC3\\x82\\xC2\\xADh~', 'th', $s_String);
    // .
    $s_String = preg_replace('~.\\xD0\\x92+~', '.', $s_String);
    $s_String = preg_replace('~.\\xD0\\x92~', '.', $s_String);
    // ,
    $s_String = preg_replace('~\\x2C\\xD0\\x92~', ',', $s_String);
    return $s_String;
}
function all_convert($s_String)
{
    // Array for entities
    $umlaute = array('„', '“', '–', ' \\"', '–', '—', '‘', '’', '“', '”', '„', '•', '…', '€', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 'Ž', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 'ž', 'Ÿ', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '¹', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', utf8_encode('€'), utf8_encode('‚'), utf8_encode('ƒ'), utf8_encode('„'), utf8_encode('…'), utf8_encode('†'), utf8_encode('‡'), utf8_encode('ˆ'), utf8_encode('‰'), utf8_encode('Š'), utf8_encode('‹'), utf8_encode('Œ'), utf8_encode('Ž'), utf8_encode('‘'), utf8_encode('’'), utf8_encode('“'), utf8_encode('”'), utf8_encode('•'), utf8_encode('–'), utf8_encode('—'), utf8_encode('˜'), utf8_encode('™'), utf8_encode('š'), utf8_encode('›'), utf8_encode('œ'), utf8_encode('ž'), utf8_encode('Ÿ'), utf8_encode('¡'), utf8_encode('¢'), utf8_encode('£'), utf8_encode('¤'), utf8_encode('¥'), utf8_encode('¦'), utf8_encode('§'), utf8_encode('¨'), utf8_encode('©'), utf8_encode('ª'), utf8_encode('«'), utf8_encode('¬'), utf8_encode('®'), utf8_encode('¯'), utf8_encode('°'), utf8_encode('±'), utf8_encode('²'), utf8_encode('³'), utf8_encode('´'), utf8_encode('µ'), utf8_encode('¶'), utf8_encode('·'), utf8_encode('¸'), utf8_encode('¹'), utf8_encode('º'), utf8_encode('»'), utf8_encode('¼'), utf8_encode('½'), utf8_encode('¾'), utf8_encode('¿'), utf8_encode('À'), utf8_encode('Á'), utf8_encode('Â'), utf8_encode('Ã'), utf8_encode('Ä'), utf8_encode('Å'), utf8_encode('Æ'), utf8_encode('Ç'), utf8_encode('È'), utf8_encode('É'), utf8_encode('Ê'), utf8_encode('Ë'), utf8_encode('Ì'), utf8_encode('Í'), utf8_encode('Î'), utf8_encode('Ï'), utf8_encode('Ð'), utf8_encode('Ñ'), utf8_encode('Ò'), utf8_encode('Ó'), utf8_encode('Ô'), utf8_encode('Õ'), utf8_encode('Ö'), utf8_encode('×'), utf8_encode('Ø'), utf8_encode('Ù'), utf8_encode('Ú'), utf8_encode('Û'), utf8_encode('Ü'), utf8_encode('Ý'), utf8_encode('Þ'), utf8_encode('ß'), utf8_encode('à'), utf8_encode('á'), utf8_encode('â'), utf8_encode('ã'), utf8_encode('ä'), utf8_encode('å'), utf8_encode('æ'), utf8_encode('ç'), utf8_encode('è'), utf8_encode('é'), utf8_encode('ê'), utf8_encode('ë'), utf8_encode('ì'), utf8_encode('í'), utf8_encode('î'), utf8_encode('ï'), utf8_encode('ð'), utf8_encode('ñ'), utf8_encode('ò'), utf8_encode('ó'), utf8_encode('ô'), utf8_encode('õ'), utf8_encode('ö'), utf8_encode('÷'), utf8_encode('ø'), utf8_encode('ù'), utf8_encode('ú'), utf8_encode('û'), utf8_encode('ü'), utf8_encode('ý'), utf8_encode('þ'), utf8_encode('ÿ'), chr(128), chr(129), chr(130), chr(131), chr(132), chr(133), chr(134), chr(135), chr(136), chr(137), chr(138), chr(139), chr(140), chr(141), chr(142), chr(143), chr(144), chr(145), chr(146), chr(147), chr(148), chr(149), chr(150), chr(151), chr(152), chr(153), chr(154), chr(155), chr(156), chr(157), chr(158), chr(159), chr(160), chr(161), chr(162), chr(163), chr(164), chr(165), chr(166), chr(167), chr(168), chr(169), chr(170), chr(171), chr(172), chr(173), chr(174), chr(175), chr(176), chr(177), chr(178), chr(179), chr(180), chr(181), chr(182), chr(183), chr(184), chr(185), chr(186), chr(187), chr(188), chr(189), chr(190), chr(191), chr(192), chr(193), chr(194), chr(195), chr(196), chr(197), chr(198), chr(199), chr(200), chr(201), chr(202), chr(203), chr(204), chr(205), chr(206), chr(207), chr(208), chr(209), chr(210), chr(211), chr(212), chr(213), chr(214), chr(215), chr(216), chr(217), chr(218), chr(219), chr(220), chr(221), chr(222), chr(223), chr(224), chr(225), chr(226), chr(227), chr(228), chr(229), chr(230), chr(231), chr(232), chr(233), chr(234), chr(235), chr(236), chr(237), chr(238), chr(239), chr(240), chr(241), chr(242), chr(243), chr(244), chr(245), chr(246), chr(247), chr(248), chr(249), chr(250), chr(251), chr(252), chr(253), chr(254), chr(255), chr(256));
    $htmlcode = array('„', '“', '–', ' "', '–', '—', '‘', '’', '“', '”', '„', '•', '…', '€', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 'Ž', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 'ž', 'Ÿ', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', '€', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 'Ž', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 'ž', 'Ÿ', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', '€', '', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', '', 'Ž', '', '', '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '', 'ž', 'Ÿ', ' ', '¡', '¡', '¡', '¡', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '­­', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '&supl;', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ');
    //$s_String = str_replace($umlaute, $htmlcode, $s_String);
    if (version_compare(phpversion(), '5.0.0', '>=')) {
        $s_String = utf8_encode(html_entity_decode(str_replace($umlaute, $htmlcode, $s_String)));
    } else {
        $s_String = utf8_encode(RSSImport_html_entity_decode_php4(str_replace($umlaute, $htmlcode, $s_String)));
    }
    // … , …
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\xA6~', '…', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x82\\xC2\\xA6~', '…', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xC2\\xA6~', '…', $s_String);
    // — , —
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x80\\x9D~', '—', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\x9D~', '—', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x80\\x9D~', '—', $s_String);
    // – , –
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x80\\x9C~', '–', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\x93~', '–', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x80\\x9C~', '–', $s_String);
    // ’ , ’
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xE2\\x84\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\xA2\\xE2\\x80\\x9E\\xC2\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xE2\\x84\\xA2~', '’', $s_String);
    $s_String = preg_replace('~\\xD0\\xBF\\xD1\\x97\\xD0\\x85~', '’', $s_String);
    // ‘ , ‘
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xCB\\x9C~', '‘', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x8B\\xC5\\x93~', '‘', $s_String);
    // ” , ”
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC2\\x9D~', '”', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x82\\xC2\\x9D~', '”', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xD1\\x9C~', '”', $s_String);
    // “ , “
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\x93~', '“', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x80\\x9A\\xC2\\xAC\\xC3\\x85\\xE2\\x80\\x9C~', '“', $s_String);
    $s_String = preg_replace('~\\xD0\\xB2\\xD0\\x82\\xD1\\x9A~', '“', $s_String);
    // ™ , ™
    $s_String = preg_replace('~\\xC3\\xA2\\xE2\\x80\\x9E\\xC2\\xA2~', '™', $s_String);
    $s_String = preg_replace('~\\xC3\\x83\\xC2\\xA2\\xC3\\xA2\\xE2\\x82\\xAC\\xC5\\xBE\\xC3\\x82\\xC2\\xA2~', '™', $s_String);
    // th
    $s_String = preg_replace('~t\\xC3\\x82\\xC2\\xADh~', 'th', $s_String);
    // .
    $s_String = preg_replace('~.\\xD0\\x92+~', '.', $s_String);
    $s_String = preg_replace('~.\\xD0\\x92~', '.', $s_String);
    // ,
    $s_String = preg_replace('~\\x2C\\xD0\\x92~', ',', $s_String);
    return $s_String;
}