moodle/lang/el/fonts/lang_decode.php
2004-04-28 15:21:38 +00:00

14 lines
235 B
PHP

<?php
function lang_decode($s) {
$len = strlen($s);
$out = '';
for($i=0; $i < $len; $i++) {
$ch = ord($s[$i]);
$out .= $ch > 128 && $ch < 256 ? '&#'.(720 + $ch).';' : chr($ch);
}
return $out;
}
?>