summaryrefslogtreecommitdiff
path: root/include/Convert.class.php
blob: 90cc59c9b1ba7b1e7b77eddd910eb525900ddce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class Convert {

  public static function decodePseudoUTF($string) {
    $ret = str_replace(
		       ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ć','Ź','ń','ń','e̜'],
		       ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ź','Ć','ń','ń','ę'],
		       $string);
    return $ret;
  }

}

?>