Replacing tabs with spaces, trimming white space at EOL and newline at EOF
[squirrelmail.git] / functions / decode / cp1254.php
index 10916c0a61360a7bae1f8dc79b6afed176806790..7cfe140fc086107aefd03c6ab788a43cee450f42 100644 (file)
@@ -7,7 +7,7 @@
  *
  * This file contains cp1254 decoding function that is needed to read
  * cp1254 encoded mails in non-cp1254 locale.
- * 
+ *
  * Original data taken from:
  *  ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT
  *
@@ -39,134 +39,134 @@ function charset_decode_cp1254 ($string) {
         return $string;
 
     $cp1254 = array(
-       "\x80" => '€',
-       "\x81" => '�',
-       "\x82" => '‚',
-       "\x83" => 'ƒ',
-       "\x84" => '„',
-       "\x85" => '…',
-       "\x86" => '†',
-       "\x87" => '‡',
-       "\x88" => 'ˆ',
-       "\x89" => '‰',
-       "\x8A" => 'Š',
-       "\x8B" => '‹',
-       "\x8C" => 'Œ',
-       "\x8D" => '�',
-       "\x8E" => '�',
-       "\x8F" => '�',
-       "\x90" => '�',
-       "\x91" => '‘',
-       "\x92" => '’',
-       "\x93" => '“',
-       "\x94" => '”',
-       "\x95" => '•',
-       "\x96" => '–',
-       "\x97" => '—',
-       "\x98" => '˜',
-       "\x99" => '™',
-       "\x9A" => 'š',
-       "\x9B" => '›',
-       "\x9C" => 'œ',
-       "\x9D" => '�',
-       "\x9E" => '�',
-       "\x9F" => 'Ÿ',
-       "\xA0" => ' ',
-       "\xA1" => '¡',
-       "\xA2" => '¢',
-       "\xA3" => '£',
-       "\xA4" => '¤',
-       "\xA5" => '¥',
-       "\xA6" => '¦',
-       "\xA7" => '§',
-       "\xA8" => '¨',
-       "\xA9" => '©',
-       "\xAA" => 'ª',
-       "\xAB" => '«',
-       "\xAC" => '¬',
-       "\xAD" => '­',
-       "\xAE" => '®',
-       "\xAF" => '¯',
-       "\xB0" => '°',
-       "\xB1" => '±',
-       "\xB2" => '²',
-       "\xB3" => '³',
-       "\xB4" => '´',
-       "\xB5" => 'µ',
-       "\xB6" => '¶',
-       "\xB7" => '·',
-       "\xB8" => '¸',
-       "\xB9" => '¹',
-       "\xBA" => 'º',
-       "\xBB" => '»',
-       "\xBC" => '¼',
-       "\xBD" => '½',
-       "\xBE" => '¾',
-       "\xBF" => '¿',
-       "\xC0" => 'À',
-       "\xC1" => 'Á',
-       "\xC2" => 'Â',
-       "\xC3" => 'Ã',
-       "\xC4" => 'Ä',
-       "\xC5" => 'Å',
-       "\xC6" => 'Æ',
-       "\xC7" => 'Ç',
-       "\xC8" => 'È',
-       "\xC9" => 'É',
-       "\xCA" => 'Ê',
-       "\xCB" => 'Ë',
-       "\xCC" => 'Ì',
-       "\xCD" => 'Í',
-       "\xCE" => 'Î',
-       "\xCF" => 'Ï',
-       "\xD0" => 'Ğ',
-       "\xD1" => 'Ñ',
-       "\xD2" => 'Ò',
-       "\xD3" => 'Ó',
-       "\xD4" => 'Ô',
-       "\xD5" => 'Õ',
-       "\xD6" => 'Ö',
-       "\xD7" => '×',
-       "\xD8" => 'Ø',
-       "\xD9" => 'Ù',
-       "\xDA" => 'Ú',
-       "\xDB" => 'Û',
-       "\xDC" => 'Ü',
-       "\xDD" => 'İ',
-       "\xDE" => 'Ş',
-       "\xDF" => 'ß',
-       "\xE0" => 'à',
-       "\xE1" => 'á',
-       "\xE2" => 'â',
-       "\xE3" => 'ã',
-       "\xE4" => 'ä',
-       "\xE5" => 'å',
-       "\xE6" => 'æ',
-       "\xE7" => 'ç',
-       "\xE8" => 'è',
-       "\xE9" => 'é',
-       "\xEA" => 'ê',
-       "\xEB" => 'ë',
-       "\xEC" => 'ì',
-       "\xED" => 'í',
-       "\xEE" => 'î',
-       "\xEF" => 'ï',
-       "\xF0" => 'ğ',
-       "\xF1" => 'ñ',
-       "\xF2" => 'ò',
-       "\xF3" => 'ó',
-       "\xF4" => 'ô',
-       "\xF5" => 'õ',
-       "\xF6" => 'ö',
-       "\xF7" => '÷',
-       "\xF8" => 'ø',
-       "\xF9" => 'ù',
-       "\xFA" => 'ú',
-       "\xFB" => 'û',
-       "\xFC" => 'ü',
-       "\xFD" => 'ı',
-       "\xFE" => 'ş',
-       "\xFF" => 'ÿ'
+        "\x80" => '€',
+        "\x81" => '�',
+        "\x82" => '‚',
+        "\x83" => 'ƒ',
+        "\x84" => '„',
+        "\x85" => '…',
+        "\x86" => '†',
+        "\x87" => '‡',
+        "\x88" => 'ˆ',
+        "\x89" => '‰',
+        "\x8A" => 'Š',
+        "\x8B" => '‹',
+        "\x8C" => 'Œ',
+        "\x8D" => '�',
+        "\x8E" => '�',
+        "\x8F" => '�',
+        "\x90" => '�',
+        "\x91" => '‘',
+        "\x92" => '’',
+        "\x93" => '“',
+        "\x94" => '”',
+        "\x95" => '•',
+        "\x96" => '–',
+        "\x97" => '—',
+        "\x98" => '˜',
+        "\x99" => '™',
+        "\x9A" => 'š',
+        "\x9B" => '›',
+        "\x9C" => 'œ',
+        "\x9D" => '�',
+        "\x9E" => '�',
+        "\x9F" => 'Ÿ',
+        "\xA0" => ' ',
+        "\xA1" => '¡',
+        "\xA2" => '¢',
+        "\xA3" => '£',
+        "\xA4" => '¤',
+        "\xA5" => '¥',
+        "\xA6" => '¦',
+        "\xA7" => '§',
+        "\xA8" => '¨',
+        "\xA9" => '©',
+        "\xAA" => 'ª',
+        "\xAB" => '«',
+        "\xAC" => '¬',
+        "\xAD" => '­',
+        "\xAE" => '®',
+        "\xAF" => '¯',
+        "\xB0" => '°',
+        "\xB1" => '±',
+        "\xB2" => '²',
+        "\xB3" => '³',
+        "\xB4" => '´',
+        "\xB5" => 'µ',
+        "\xB6" => '¶',
+        "\xB7" => '·',
+        "\xB8" => '¸',
+        "\xB9" => '¹',
+        "\xBA" => 'º',
+        "\xBB" => '»',
+        "\xBC" => '¼',
+        "\xBD" => '½',
+        "\xBE" => '¾',
+        "\xBF" => '¿',
+        "\xC0" => 'À',
+        "\xC1" => 'Á',
+        "\xC2" => 'Â',
+        "\xC3" => 'Ã',
+        "\xC4" => 'Ä',
+        "\xC5" => 'Å',
+        "\xC6" => 'Æ',
+        "\xC7" => 'Ç',
+        "\xC8" => 'È',
+        "\xC9" => 'É',
+        "\xCA" => 'Ê',
+        "\xCB" => 'Ë',
+        "\xCC" => 'Ì',
+        "\xCD" => 'Í',
+        "\xCE" => 'Î',
+        "\xCF" => 'Ï',
+        "\xD0" => 'Ğ',
+        "\xD1" => 'Ñ',
+        "\xD2" => 'Ò',
+        "\xD3" => 'Ó',
+        "\xD4" => 'Ô',
+        "\xD5" => 'Õ',
+        "\xD6" => 'Ö',
+        "\xD7" => '×',
+        "\xD8" => 'Ø',
+        "\xD9" => 'Ù',
+        "\xDA" => 'Ú',
+        "\xDB" => 'Û',
+        "\xDC" => 'Ü',
+        "\xDD" => 'İ',
+        "\xDE" => 'Ş',
+        "\xDF" => 'ß',
+        "\xE0" => 'à',
+        "\xE1" => 'á',
+        "\xE2" => 'â',
+        "\xE3" => 'ã',
+        "\xE4" => 'ä',
+        "\xE5" => 'å',
+        "\xE6" => 'æ',
+        "\xE7" => 'ç',
+        "\xE8" => 'è',
+        "\xE9" => 'é',
+        "\xEA" => 'ê',
+        "\xEB" => 'ë',
+        "\xEC" => 'ì',
+        "\xED" => 'í',
+        "\xEE" => 'î',
+        "\xEF" => 'ï',
+        "\xF0" => 'ğ',
+        "\xF1" => 'ñ',
+        "\xF2" => 'ò',
+        "\xF3" => 'ó',
+        "\xF4" => 'ô',
+        "\xF5" => 'õ',
+        "\xF6" => 'ö',
+        "\xF7" => '÷',
+        "\xF8" => 'ø',
+        "\xF9" => 'ù',
+        "\xFA" => 'ú',
+        "\xFB" => 'û',
+        "\xFC" => 'ü',
+        "\xFD" => 'ı',
+        "\xFE" => 'ş',
+        "\xFF" => 'ÿ'
     );
 
     $string = str_replace(array_keys($cp1254), array_values($cp1254), $string);
@@ -174,4 +174,4 @@ function charset_decode_cp1254 ($string) {
     return $string;
 }
 
-?>
+?>
\ No newline at end of file