-
-
Save kasperkamperman/198c6389840532b96069ba6a776d69e6 to your computer and use it in GitHub Desktop.
<?php header('Content-Type: text/html; charset=utf-8'); ?> | |
<html> | |
<head> | |
<title>Fix wrong encoded UTF8 characters</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<pre> | |
<?php | |
/* Problem description: | |
A common problem is for characters encoded as UTF-8 to have their individual bytes interpreted as ISO-8859-1 or Windows-1252. | |
Instead of an expected character, a sequence of Latin characters is shown, typically starting with à or Â. For example, instead of "è" these characters occur: "è". | |
A Web page is encoded as UTF-8 characters. The Web server mistakenly declares the charset to be ISO-8859-1 in the HTTP protocol that delivers the page to the browser. | |
The browser will then display each of the UTF-8 bytes in the Web page as Latin-1 characters. | |
source: http://www.i18nqa.com/debug/bug-utf-8-latin1.html | |
code source: https://github.com/devgeniem/wp-sanitize-accented-uploads/blob/master/plugin.php#L152 | |
table source: http://www.i18nqa.com/debug/utf8-debug.html | |
https://www.kasperkamperman.com/ 2018-07-03 | |
*/ | |
$str = 'BLØF - ZOUTELANDE, MØ - FINAL SONG, Fédération Camerounaise de Football, It’s Getting the Best of Me'; | |
echo "original string: ".$str.'<br/>'; | |
echo "fixed string: ".fixWrongUTF8Encoding($str).'<br/>'; | |
// displays: BLØF - ZOUTELANDE, MØ - FINAL SONG, Fédération Camerounaise de Football, It’s Getting the Best of Me | |
function fixWrongUTF8Encoding($inputString) { | |
// code source: https://github.com/devgeniem/wp-sanitize-accented-uploads/blob/master/plugin.php#L152 | |
// table source: http://www.i18nqa.com/debug/utf8-debug.html | |
$fix_list = array( | |
// 3 char errors first | |
'‚' => '‚', '„' => '„', '…' => '…', '‡' => '‡', | |
'‰' => '‰', '‹' => '‹', '‘' => '‘', '’' => '’', | |
'“' => '“', '•' => '•', '–' => '–', '—' => '—', | |
'â„¢' => '™', '›' => '›', '€' => '€', | |
// 2 char errors | |
'Â' => 'Â', 'Æ’' => 'ƒ', 'Ã' => 'Ã', 'Ä' => 'Ä', | |
'Ã…' => 'Å', 'â€' => '†', 'Æ' => 'Æ', 'Ç' => 'Ç', | |
'ˆ' => 'ˆ', 'È' => 'È', 'É' => 'É', 'Ê' => 'Ê', | |
'Ë' => 'Ë', 'Å’' => 'Œ', 'ÃŒ' => 'Ì', 'Ž' => 'Ž', | |
'ÃŽ' => 'Î', 'Ñ' => 'Ñ', 'Ã’' => 'Ò', 'Ó' => 'Ó', | |
'â€' => '”', 'Ô' => 'Ô', 'Õ' => 'Õ', 'Ö' => 'Ö', | |
'×' => '×', 'Ëœ' => '˜', 'Ø' => 'Ø', 'Ù' => 'Ù', | |
'Å¡' => 'š', 'Ú' => 'Ú', 'Û' => 'Û', 'Å“' => 'œ', | |
'Ãœ' => 'Ü', 'ž' => 'ž', 'Þ' => 'Þ', 'Ÿ' => 'Ÿ', | |
'ß' => 'ß', '¡' => '¡', 'á' => 'á', '¢' => '¢', | |
'â' => 'â', '£' => '£', 'ã' => 'ã', '¤' => '¤', | |
'ä' => 'ä', 'Â¥' => '¥', 'Ã¥' => 'å', '¦' => '¦', | |
'æ' => 'æ', '§' => '§', 'ç' => 'ç', '¨' => '¨', | |
'è' => 'è', '©' => '©', 'é' => 'é', 'ª' => 'ª', | |
'ê' => 'ê', '«' => '«', 'ë' => 'ë', '¬' => '¬', | |
'ì' => 'ì', '®' => '®', 'î' => 'î', '¯' => '¯', | |
'ï' => 'ï', '°' => '°', 'ð' => 'ð', '±' => '±', | |
'ñ' => 'ñ', '²' => '²', 'ò' => 'ò', '³' => '³', | |
'ó' => 'ó', '´' => '´', 'ô' => 'ô', 'µ' => 'µ', | |
'õ' => 'õ', '¶' => '¶', 'ö' => 'ö', '·' => '·', | |
'÷' => '÷', '¸' => '¸', 'ø' => 'ø', '¹' => '¹', | |
'ù' => 'ù', 'º' => 'º', 'ú' => 'ú', '»' => '»', | |
'û' => 'û', '¼' => '¼', 'ü' => 'ü', '½' => '½', | |
'ý' => 'ý', '¾' => '¾', 'þ' => 'þ', '¿' => '¿', | |
'ÿ' => 'ÿ', 'À' => 'À', | |
// 1 char errors last | |
'Ã' => 'Á', 'Å' => 'Š', 'Ã' => 'Í', 'Ã' => 'Ï', | |
'Ã' => 'Ð', 'Ã' => 'Ý', 'Ã' => 'à', 'Ã' => 'í' | |
); | |
$error_chars = array_keys($fix_list); | |
$real_chars = array_values($fix_list); | |
return str_replace($error_chars, $real_chars, $inputString); | |
} | |
?> | |
</pre> | |
</body> | |
</html> |
@olcirem Could you elaborate on your comment?
"€" => "€", "‚" => "‚", "„" => "„", "…" => "…", "ˆ" => "ˆ",| Y3: %f | TX3: %i | TY3: %i Rapidfire: %i | Quickscope: %i | Aim Assist: %i | Autobreath: %i | Autoreload: %i AAT: %i | AAT Auto Shoot: %i | AAT Shoot Distance: %i | AAT Restrict: %i | AAT Restricted Percent: %i | AAT Delay: %i AAT Correction Percent: %i | AAT Correction Distance: %i | AAT Correction Velocity: %i | AAT Correction Incremental: %i Configuration applied! Tier %i active. Aim assisted tracking disabled Aim assisted tracking enabled Aim assisted tracking auto shoot disabled Aim assisted tracking auto shoot enabled Rapidfire disabled Rapidfire enabled Dropshot disabled Dropshot enabled Jumpshot disabled Jumpshot enabled ���*�6�@�L�X�b�n�x�„���Ÿ�«�·�Á�?�b�…�§�±�Î�ì�
�'�1�8�G�Œ�˜�¤�®�º�Æ�Ð�ç�þ�������'�1�=�L�S�b�o�~�ˆ�—�¦�µ�Ç�Ó�â�������,�9�H�O�n���™�¥�±�»�Â�á�ò����$�.�:�F��L 2#ó 2#ò 2#ñ 2#ð 2#ï 3#ì 2#ë$ 4#Ô$ 4#Ð 2#Ï$ ��4#È$ ��4#Ä �2#Ã# �3#À# �3#¾ �3#¼ �2#» 2#º 2#¸ 2#· 2#¶ 2#µ 2#´ 2#³ 2#² 2#± 2#° 2#¯ 2#® 2# 2#¬ 2#« 2#ª 2#© 2#¨ 2#§ 2#¦ 2#¥ 2#¤ 2#£ 2#¢ 2#¡ 2# 2#Ÿ 2#ž 2#�"��3#š 2#™ �2#˜ 2#— 2#– d2#• �2#” 2#“ d2#’ d2#‘ d2#� �2#� �2#Ž 22#� È3#Š$ 4#„$ �š4#€ �2#S$
=4#L �2#K �2#J 2#I$ 4#D 2#C$ 4#< 22#; �2#:àâ �\ �j2#·â �\ �j2#µâ �\ �j2#´â �\ �j2#±â �\ �j2#°â �\ �j2#¯â �\ �j2#®â� \ �j2#«â� �\ �j2#¶â� �\ �j2#©â� �\ �j2#¨â� �\ �j2#§â� �\ �j2#â� �\ �j2#¬ �##’ã �##“ãâ� \ �j2#³â� �\ �j2#²â� �\ �j2#¦â� �\ �j2#ªâ� �\ �j2#¢â� �\ �j2#¥ �##Lå)#L$ d Y4#L �##Kã ##Jã
##|å �##xå �##nä �##lä �##hå �##då !##bä ###ä %##\å )##Xå -##Vä /##Tä >##‘ãâ� \ �j2#¸â� �\ �j2#¤# þ��(#ì i��¨ �3#ì�� 3#ì(#À# /h��¿(#À(#¾hm��Í(#Àþ�(#À3#¾ �£4#t �£4#p)#ü$ e���)#ü)#€Z4#ü)#ü$ g���$ 4#ü��$)#ü)#€[4#ü)#ü$ e��$$ 4#ü)#ø$ e��Q)#ø)#€Z4#ø)#ø$ g��N$ 4#ø��o)#ø)#€[4#ø)#ø$ e��o$ 4#ø)#È$ � W)#üZ„)#Ä$ � W)#øZ„[ƒ4#ô)#ô$ g��³)#ü$ i��²)#ø$ imo��Ã$ 4#ô 2#Ï 2#ë �£)#L$ � [a��ç �£)#LR$ � Zco��ø �£)#L$ � [ao�� �£)#LR$ � Zco2#ñ �£)#L%#ŽS[a��* �£)#LR%#ŽSZco��: �£)#L%#ŽS[ao��K �£)#LR%#ŽSZco2# �£)#L$ � [a��m �£)#LR$ � Zco��~ �£)#L$ � [ao��� �£)#LR$ � Zco2#ð×�ý ##„Û)#„t4#„)#„$ � i� � �##|Û ##xÛ �##nÚ �##lÚ �##hÛ �##dÛ �##bÚ "##
Ú &##\Û *##XÛ .##VÚ 2##TÚ)#|$ d W4#|)#x$ d W4#x)#h$ d W4#h)#d$ d W4#d)#$ d W4#)#X$ d W4#X 4##®Ù 5##Ù 6##²Ù 7##¬Ù 8##«Ù%#˜ �d� £ 9##ªÙ :##¢Ù >##”Ù ?##ŸÙ C##�Ù G##�Ù K##�Ù O##;Ù S##:Ù V##ŠÚ# 0)#|)#x'#n'#lþ�# T)#h)#d'#b'#þ�# x)#\)#X'#V'#Tþ�# œ%#®%#%#²%#¬%#«þ�# î%#ª%#¢%#”%#Ÿ%#�'#Šþ�#�e%#�%#�%#;%#:þ�)#„$ � i� ()#„$ � io� 2%#ª �im� <%#˜ �dm� Î �##üÛ �##øÛ ##ôÛ �##ÈÛ �##ÄÛ �##ÏÙ%#™� n �¢Pm� y �¨'#Š
m�
“)#ü$ h�
’)#ø$ hom�
ž �2#ë�
Î �¢�
¬ �§'#Šm� Æ)#ü$ h� Å)#ø$ hom� Î �2#ë)#„$ � i��: �##ªÙ �##¡Ù �##¢Ù �##£Ù �##ŸÙ ##:Ù �##�Ù �##�Ù �##;Ù �##ŠÚ ##ŽÙ $##�Ù (##”Ù ,##ºÙ 0##˜Ù 2##ÃÙ)#„$ � i�! �##·Ù �##µÙ �##´Ù �##±Ù �##°Ù ##¯Ù ##®Ù �##¥Ù ##«Ù ##¶Ù �##©Ù �##¨Ù �##§Ù �##¦Ù �##Ù �##¬Ù �##“Ù �##³Ù �##¸Ù �##²Ù �##¤Ù �##’Ù ##‘Ù $##JÙ (##SÙ ,##KÙ 0##–Ù 4##IÙ 8##CÙ 9##™Ù%#SS$ W4#L%#IS$ d W4#D%#CS$ d W4#<)#„$ � i�× �##|Û ##xÛ �##nÚ �##lÚ �##hÛ �##dÛ �##bÚ "##
Ú &##\Û *##XÛ .##VÚ 2##TÚ 6##€Û)#|$ d W4#|)#x$ d W4#x)#h$ d W4#h)#d$ d W4#d)#$ d W4#)#X$ d W4#X)#€$ d W4#€#�Þ%#˜þ�)#„$ � i�õ �##žÙ �##�Ù �##šÚ$ 4#„%#ŸP�
�%#£m�
�%#ªm�
�%#ëm�
�%# m�
-
2#ë 2#Ï �¢�
4%#ëm�
;%#ªm�
E%#˜ �dm�
]%#™�
R%#ëm�
%#˜ �dmo�
Ÿ)#ô$ h�
œ� ,)#ü:$)#t: 8���J(4#t� ,)#ø:$)#p: �8���J(4#p�
³)#t)#ü[4#t)#p)#ø[4#p%#Ï�
½ �¢m�
Å 2#Ï%#ª�
Ï%#Ïm�
Ö%#¢m�
Þ � d¡%#Ÿ�
è%#ñm�
ï �¢m�
ü)#ô$ hm��! �£%#�S$ d WY4#t �£%#�S$ d WY4#p%#«��+ �¢m��2 �¢m��: �2#ï%#´��D �¢m��L � d¡%#´��V �¢m��^ � d¡%#ï��h%#«m��p �¢Pm��{ �¨"�èm��Ž �2#ó 2#ï�#��"ø%#���Ÿ �¢��ž �¢om��¥“#�%#·��°%#óPm��½ �£$ÿ° cm��Æ�"Ä��É“"Ä%#·��Ó �¢m��Þ �2#ó�"ø%#©��è �¢m��ó �§"�¸
m��ù�#�%#“ �i���%#§m��
�¢m����#�%#“ i�� %#§m��' �¢m��-�#�%#ž��7 �¢m��? � d¡%#“ �i��L%#¶m��S �ªm���£$ÿ® cm��v �§"��f��s�"¼��v“"¼%#“ i��ƒ%#¶m��Š �ªm��— �£$ÿ® cm�� �§"��f��ª�"¸��“"¸%#���ï%#¹ i��À �ªm��Î�"Ì �2#¹��Ü �'#š¬��Ü 2#¹%#¹ �i��é �©m��ï�"È%#¡��� �¢��ÿ �©m�� �¨ Èfm��� �2#ª �ª��� 2#ª �¢��& ©m��0 ¨ Èfm��P%#ª��F 2#ª#��þ���P �2#ª#�$þ� �¢��Z �©m��d �¨ Èfm��„%#¢��z 2#¢#�Bþ���„ �2#¢#�lþ� �¢��Ž �©m��˜ �¨ Èfm��¸%#®��® 2#®#�•þ���¸ �2#®#�¨þ� �¢�� ©m��Ì ¨ Èfm��ì%#±��â 2#±#�ºþ���ì �2#±#�Ìþ� �¢��ö ©m�� ¨ Èfm�� %#°��� 2#°#�Ýþ��� �2#°#�ïþ�%#òP��+%#µm��2 �¢m��9 �¢m��D �2#ò�"À%#ðP��O%#¯m��V �¢m��_�#��b“#%#®��l �¢m��u�"Ø��x“"Ø%#��‚ �¢m��ˆ�"Ô%#°��’ �¢m��™ �¢m��¢�"Ð��¥“"Ð%#¨��¯ �¥m��µ�"´%#¨��¿ �ªm��Å“"´%#“ i��Ò%#±m��Ù �¢m��à �¢m��ë �§"�ôbm��ñ�"à%#“ �i��þ%#±m��� �¢m�� �¢m��� �§"�ôbm����"Ü%#¬��' �¢m��1 �¨ d
m��J � d¡ �£$ d i��J � ¡%#ëP��Ë%#²��%#ñPm��c �¢m��l�#���o“#�%#²��y%#¤m���%#ðPm��ˆ �¢m��‘�"ü��”“"ü%#²��ž �¢m��¥ �¢m��®“#�“"ü%#²��¿ �¢��¾ �¢om��È“#�“"ü��Ñ“#�“"ü)#t)#Dc��ä)#t)#DRam��ï$ 4#t)#p)#<c���)#p)#<Ram��
$ 4#p)#t$ÿœ g��!$ÿœ 4#t)#t$ d e��5$ d 4#t)#p$ÿœ g��I$ÿœ 4#p)#p$ d e��]$ d 4#p �)#t%#’S$ d WY �)#p%#’S$ d WY �¢��ª �)#t%#‘S$ d WY �)#p%#‘S$ d WY ��Ì �)#t%#’S$ d WY �)#p%#’S$ d WY �¢��Ö �¢m��û �)#t%#JS$ d WY �)#p%#JS$ d WY %#¸ i���%#³m��� �¢m��� �¢m����"ô���%#¸ �i��,%#³m��3 �¢m��: �¢m��ù'#èï[3#è%#¦��R)#ÜR4#Ü� � �8�)#Ü:��_�� � �8�)#Ø:��_�)#d$ h��†'#è'#lm��´'#æï[3#æ)#d4#Ü)#X$ h��«'#æ'#``m��´)#X4#Ü)#h$ h��È'#è'#n
m��ö'#äï[3#ä)#h4#Ø)#$ h��í'#ä'#bm��ö)#\4#Ø���“"ô 3#è 3#æ 3#ä)#x4#Ü)#|4#Ø�#�� �9 � ¡�#� È�9 � d¡�#� È�9�#��#����[ � ¡�#� È�[ � d¡�#� È�[�#��#���q � ¡�#� È�q�#��#����˜ � ¡�#� ��˜ � d¡�#� È�˜ � ¡�#��#���º �!œ¡�#���º � d¡�#���º�#�#����ª)#t4#�)#p4# )#�$ÿœ g��á$ÿœ 4#�)#�$ d e��õ$ d 4#�)# $ÿœ g�� $ÿœ 4# )# $ d e���$ d 4# �)#� �)# )#L[%#KS[ �#��ª%#–�#��ª �)#�%#KS)#L[R[ �)# �#��ª%#–�#��ª �)#� �)# %#KS)#L[R[ �#��ª%#–�#��ª �)#�)#L[%#KS[ �)# �#��ª%#–�#��ª�#��"ü�&�* � ¡ �)#L%#KS[ �"ü�*%#–�"ü�* � ¡ �%#KS)#L[R �"ü�*%#–�"ü�* � ¡ �%#KS)#L[R �"ü�*%#–�"ü�* �)#L%#KS[ � ¡�"ü�*%#–�"ü�*�"ü�"ø�0�@�"ø�Ü�@ 2#ó�"ø�"ô�4�…)#t4"ð)#p4"ì$ 4"è$ 4"ä �§'#n
��s)#|4"è �§'#l��ƒ)#x4"ä'#b'#nd��• �§'#b
m��ž)#h4"è'#'#ld��° �§'#``m��¹)#d4"ä'#V'#bd��Ë �§'#V
m��Ô)#\4"è'#T'#d��æ �§'#T
m��ï)#X4"ä)"ì)"ä[4"ì)"ð)"è[4"ð)"ð$ÿœ g���$ÿœ 4"ð)"ð$ d e��+$ d 4"ð)"ì$ÿœ g��?$ÿœ 4"ì)"ì$ d e��S$ d 4"ì%#¦��`)"ìR4"ì �)"ð%#JS$ d WY �)"ì%#JS$ d WY �"ô�"à�6�§ � ¡�"à ��§ � d¡�"à�î�§�"à�"Ü�<�É � ¡�"Ü ��É � d¡�"Ü�î�É�"Ü�"Ø�B�� � ¡%#¥��à � ¡�"Ø 2�� � d¡%#¥��÷ � d¡�"Ø 2���"Ø�"Ô�H��"Ô�,� � ¡�"Ô 2�* � d¡�"Ô� �*�"Ô�"Ð�P�E � d¡�"Ð ��E � ¡�"Ð�"Ì�T���"Ì (�� �$ d �"Ì <���"Ì��'#š�"Ì�� �$ d �"Ì <���"Ì�"È�^�À
$ d �"È (�À
$ �"È (�À
$ d �"È (�À
$ �"È�"Ä�f�Û � d¡�"Ä 2�Û � ¡�"Ä�"À�j�A%#º �h��ó 3#¼��ø �3#¼(#¼ ¡�"À���A(#¼ d¡�"À 2�A(#¼ ¡�"À 2�A(#¼ d¡�"À 2�A(#¼ ¡�"À�¸�A 2#ò�"À�"¼�v�´�"¼ d�´ � ¡ � ¡%#º �h��g � ¡�"¼ d�´ � d¡ � d¡�"¼ ��´%#º �h��� � d¡ � ¡�"¼ ��´ � d¡�"¼ ��´ � ¡�"¼ d�´�"¼�"¸�„�'�"¸ È�' � ¡ � ¡%#º �h��Ú � ¡�"¸ d�' � d¡ � d¡�"¸ ��'%#º �h�� � d¡ � ¡�"¸ ��' � d¡�"¸ ��' � ¡�"¸ d�'�"¸�"´�’�I � d¡�"´ (�I � ¡�"´ (�I�"´ )ÿü)ÿøZ4ÿð$ 4ÿìîS4ÿè##(%ÿ÷ �X[.P��~##(%ÿ÷ �X[)ÿè7##0%ÿ÷ �X[)ÿè##(%ÿ÷ �X[.Z7##0%ÿ÷ �X[.$ h��?)ÿø## %ÿ÷ �X[.Z4ÿä%#�S$ d W)ÿðY4ÿà%#;S$ d W)ÿðY##0%ÿ÷ �X[.Y4ÿÜ%#:S$ d W)ÿä##(%ÿ÷ �X[.WY4ÿØ)ÿà)ÿÜ[)ÿØ[4ÿì)ÿì$ d e��+$ d 4ÿì)ÿì$ÿœ g��?$ÿœ 4ÿì##(%ÿ÷ �X[)ÿè7## %ÿ÷ �X[)ÿð7)ÿì�$ 334ÿô)ÿô)ÿøY4ÿð$ � )ÿôZ)ÿø$ d )#t)#tY)#p)#pY[ƒZY$ d )#tp[)#p)#pY$ € Y[WY4ÿì%ÿÿ)ÿð)ÿì[%ÿÿ¢[$ÿœ $ d )ÿðZw �$error_chars = array_keys($fix_list);
That's very useful, thank you!
thank you 🙏
p á�ÐMâ � ã¨��ã´�Gá�� ã���å��Gâ� @ã���åÔ��ã �å �@ã( ã ��å@��ã��@ã�; ãgÅ�ë ã�Рက½èð@-ép�â
-é8ÐMâ ãÄû�ë\� ã�ë�ë� �åGº�ë(»
ãI@�ã�°@ã �å ›å�@@ã�� á�ž�ë$ �å�� á ›å�ž�ëL�ã( �å ›å�
@ã�� áý��ë$ �å�� á ›åü��ëS �ã �å ›å� @ã
� áó��ë € á ›å
� áò��ë[P�ã @ á ›å�P@ã�� áé��ë á ›å�� áè��ë� �åE��ã�
�å��@ã�@�å<0 ã�€�å �å �å$ �å� �å( �å� �å$ �å �å� �å �åÒ£ ë¨��ã � ã� @ã �å�ÐGâ
½èð@½è°Å�ê�@-é�p�âÐMâ�@ á�0—å��—å�0�å�0 áÀ—å ��èJ†�ëÐ��ãô@€å �@ã���â �€å�ÐGâ�€½è¼†�êþÞÿçþÞÿç� á � ãàŸ�ê�ÿ/á ã�ÿ/á ã�ÿ/áð@-ép�â�€-å�ÐMâ @ áŒ��å ã Pã ����”� Q�� �� á�ÐGâ�€�äð€½èÐ�”å@¢�ë Pã÷ÿÿ���”å�% ãŒ�”å�
„à���â���à��€à��å� áÚ& ëœ�”å P á˜�”å���â���à��€à��å� áÑ& ë? UãQ Š��„à? Pã(V‘å< Š UãK
�„à(��å Qã8
†�…âŒ4”åCŠ€â ã Sã �˜å� ˜å� �d”åô�”å�
�â†a†à†1ƒà ã0“å� Pá� ˜Ä”å
ã \ãÃÿÿ
œ�”å� â€�€à€�Œà �å Sá¼ÿÿ�¨d”å¤�”å��â†a†á†�€à �å
Sà��� Ià Pã Ê Vã� �� Õå Pã� Ñ� P�( �Ô�”åï¡�ë PãA
ã� á�ÐGâ�€�äð€½è Uã�
-ê�ë´ �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ãÆ! ã,¥�ëì¤�ë ð ãýÿÿê�ê�ë¡ �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ãÅ! ã�¥�ëݤ�ë ð ãýÿÿê� Õå Pã� � ˜å YáÔÿÿ�� Õå Pã� �Ô�”彡�ë Pã�
��”å ãŒ�”å���âœ4”å˜$”å���à��€à���â���à �å��‚à�‘å� Pá �dÿÿê� Õå Pã� � ˜å�˜å� Pá� êØ�”墡�ë Pã
ãXÿÿ���Õå ãè�Äå Qã
� á � ã� ã¿% 댔”å��”å ™å� Qá������„�� êÐ�”å„&�ã @ã � 㶡�댔”å��”åÐ4”åø� ãD•å²PÕá ˜å°P„á� ƒâÐ�„å� ‚â ˆå� �âðd„å�
ã€�€à€�‰à �åô�„å� á�ÐGâ�€�äð€½è ã�ÿ/áð@-ép�â �-é�ÐMâ @ á˜��å P ã Pã ��œ�”� Q�� �� á�ÐGâ �½èð€½èÔ�”å_¡�ë Pã÷ÿÿ�œ�”å�% ã˜�”å���â���à��€à��å� „àú% ë? Pã� Š �„à(f�å Vã�
†�†âCŠ€â �˜å� ˜å QáâÿÿšØ�”åÜ$”å� QáÞÿÿ�h!–å Rã�
�0Öå$ –å��Öå Sã'
1Šàx!�ã� @ãƒ1†à� Óç Rã � Yã �Ìÿÿêyé�ë´ �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã×# ãx¤�ë8¤�ë ð ãýÿÿêjé�ëû �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ãï# ãi¤�ë)¤�ë ð ãýÿÿê Yã�
���âØ�„å˜�”å� €â� ˆå Qã�
œ�”å� €â� âœ$„å€�€à€��à �å� ê� ã �å��„å� á�ÐGâ �½èð€½èœ�”å˜�”å���â¨4”å¤$”å���à��€à���â���à �å��‚à�‘å� Páˆÿÿ�� Öå PãN
H –å� Pã Ö� P�I
”å ãÀ�”å P ã@0�å� á3ÿ/á˜�”åêTÄå Pãœ�”� ��� Q�����������€��P�� �•å Qã,�•åX"��ØT”åp&�����àœ$”å 0‘å���â���á��€àÇ��ã��@ã �å� á P�å°� ëœ$”å�P ã˜�”å� �â��”å¼3Öá‚!‚á Åá��„å‚��à��Öå(–å$0�å�%”å0‘å� �å� CàÔ�”å�/oá �åD
�å¢" áH�Áå, �å„&�ã @ã � ã�5„åÒ �ëØ�”å��˜å� €âØ�„å� �â� ˆå� á�ÐGâ �½èð€½èØ�”åš �ë Pã2ÿÿ�°ÿÿêð@-ép�â
-é�ÐMâ P á¤��å @ ã Pã�
� á �å¨�¶å Qá� Ø�•å‡ �ë Pã� � á�ÐGâ ½èð€½è¨�•å�% ã¤�•å���â���à��€à��å� …à�% ë? Pã� Š �…à(��å Pã� "�€âCº�â� á ›å��ºå� Ráåÿÿ �€Ðå Xã� ¤$•å���âÜ�•å Rã �Šå� €âÜ�…åÚÿÿ –å� á �’å� PáÕÿÿ � ê¡è�ëÿ �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã›$ ã £�ë
£�ë ð ãýÿÿê� Ðå Pã�
Ø�•å„&�ã @ã � ão �ëÜ�•å šå���âÜ�…å��oá� €â Šå¡B á� á�ÐGâ
½èð€½èÔ�•å5 �ë Pãêÿÿ
›å��›å� @à� Pã¨ÿÿ�äÿÿêð@-ép�â
-éÐMâ @ á¬� ã „àè�Ôåˆ� ã Pã� „ ��’å Qã� ’� 0‘�� R�� �cè�ë´��ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã
& ãb£�ë"£�ë ð ãýÿÿê� �â(P„â81�ã‚!‚à�0@ã‚��à� á� á�¶å� Fâ� �å���è���ã��@ã� áê� ë�� ã �–å „àŸ$ ë� pã& ? Pã� Š �„à(��å Qã� h�‘å Pã' è4Ôå
%�ã •”å –å Sã�
‰çC ���Ñå Yã,
�5”å� ã�0Æá�5„å- ê&è�ëw��ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã�& ã%£�ëå¢�ë ð ãýÿÿê
�ã8!�ã� @ã� @ã�� á¿¢�ë ã�ÐGâ
½èð€½è
è�ëû �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã�& ã£�ëÌ¢�ë ð ãýÿÿê�5Ôå� ã Sã�5”��5”��0Æá�$”åŒä”å� �â�5„å�
Ñå‚!‚á¸ÃÑá°‘å‚!Žà�•Äå�eÄå °‚å$À‚å�0‚å �å�‘å �ˆå
� ál0’å àã3ÿ/á Pã�
áç�ë©
�ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ãW& ãà¢�ë ¢�ë ð ãýÿÿê���ã81�ã��@ã�0@ã� á� áq� ë ã�ÐGâ
½èð€½èð@-ép�â�€-åÐMâ @ á¸� ã „àê�Ôå”� ã Pã� „ ��’å Qã� ’� 0‘�� R�� �¶ç�ë[ �ãc��ã� @ãÞ7 ã �åº� ã @ã��@ã 0@ã¸& ãµ¢�ëu¢�ë ð ãýÿÿê� �â(€„âI1�ã‚!‚à�0@ã‚Q�à� á�µå�`Eâ� �åB �è���ã��@ã� á>� ë�� ã �•å „àó# ë� pã1
? Pã Š �„à(��å Pã�
h��å Pã2
'
$fix_list = array(
// 3 char errors first
'‚' => '‚', '„' => '„', '…' => '…', '‡' => '‡',
'‰' => '‰', '‹' => '‹', '‘' => '‘', '’' => '’',
'“' => '“', '•' => '•', '–' => '–', '—' => '—',
'â„¢' => '™', '›' => '›', '€' => '€',
// 2 char errors
'Â' => 'Â', 'Æ’' => 'ƒ', 'Ã' => 'Ã', 'Ä' => 'Ä',
'Ã…' => 'Å', 'â€' => '†', 'Æ' => 'Æ', 'Ç' => 'Ç',
'ˆ' => 'ˆ', 'È' => 'È', 'É' => 'É', 'Ê' => 'Ê',
'Ë' => 'Ë', 'Å’' => 'Œ', 'ÃŒ' => 'Ì', 'Ž' => 'Ž',
'ÃŽ' => 'Î', 'Ñ' => 'Ñ', 'Ã’' => 'Ò', 'Ó' => 'Ó',
'â€' => '”', 'Ô' => 'Ô', 'Õ' => 'Õ', 'Ö' => 'Ö',
'×' => '×', 'Ëœ' => '˜', 'Ø' => 'Ø', 'Ù' => 'Ù',
'Å¡' => 'š', 'Ú' => 'Ú', 'Û' => 'Û', 'Å“' => 'œ',
'Ãœ' => 'Ü', 'ž' => 'ž', 'Þ' => 'Þ', 'Ÿ' => 'Ÿ',
'ß' => 'ß', '¡' => '¡', 'á' => 'á', '¢' => '¢',
'â' => 'â', '£' => '£', 'ã' => 'ã', '¤' => '¤',
'ä' => 'ä', 'Â¥' => '¥', 'Ã¥' => 'å', '¦' => '¦',
'æ' => 'æ', '§' => '§', 'ç' => 'ç', '¨' => '¨',
'è' => 'è', '©' => '©', 'é' => 'é', 'ª' => 'ª',
'ê' => 'ê', '«' => '«', 'ë' => 'ë', '¬' => '¬',
'ì' => 'ì', '®' => '®', 'î' => 'î', '¯' => '¯',
'ï' => 'ï', '°' => '°', 'ð' => 'ð', '±' => '±',
'ñ' => 'ñ', '²' => '²', 'ò' => 'ò', '³' => '³',
'ó' => 'ó', '´' => '´', 'ô' => 'ô', 'µ' => 'µ',
'õ' => 'õ', '¶' => '¶', 'ö' => 'ö', '·' => '·',
'÷' => '÷', '¸' => '¸', 'ø' => 'ø', '¹' => '¹',
'ù' => 'ù', 'º' => 'º', 'ú' => 'ú', '»' => '»',
'û' => 'û', '¼' => '¼', 'ü' => 'ü', '½' => '½',
'ý' => 'ý', '¾' => '¾', 'þ' => 'þ', '¿' => '¿',
'ÿ' => 'ÿ', 'À' => 'À',
// 1 char errors last
'Ã' => 'Á', 'Å' => 'Š', 'Ã' => 'Í', 'Ã' => 'Ï',
'Ã' => 'Ð', 'Ã' => 'Ý', 'Ã' => 'à', 'Ã' => 'í'
);