summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it.class b/it.class
index 5300370..486d322 100644
--- a/it.class
+++ b/it.class
@@ -295,9 +295,9 @@ static function is_devel()
static function toascii($text)
{
return strtr(strtr($text,
- '',
- 'CeaaaceeeiiiAEoouuyooaiounNAAAaAEEEIIIOOoOUUUyY'),
- array('' => 'ae', '' => 'oe', '' => 'ue', '' => 'Ae', '' => 'Oe', '' => 'Ue', '' => 'ae', '' => 'Ae', '' => 'ss'));
+ utf8_decode( 'ÇéâàåçêëèïîìÅÉôòûùÿøØáíóúñÑÁÂÀãÃÊËÈÍÎÏÓÔõÕÚÛÙýÝ'),
+ 'CeaaaceeeiiiAEoouuyooaiounNAAAaAEEEIIIOOoOUUUyY'),
+ array("\xe4" => 'ae', "\xf6" => 'oe', "\xfc" => 'ue', "\xc4" => 'Ae', "\xd6" => 'Oe', "\xdc" => 'Ue', "\xe6" => 'ae', "\xc6" => 'Ae', "\xdf" => 'ss'));
}