summaryrefslogtreecommitdiff
path: root/include/Convert.class.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-11 14:01:29 +0200
committeremkael <emkael@tlen.pl>2016-10-11 14:01:29 +0200
commit51609351f2c4b5082b7e6f0744cd3811c325303f (patch)
tree739015e9ec69bc185ebe30db21369ae0b8b692ce /include/Convert.class.php
parent8d1b0dad63e3906efa9393ef01d08b77d83417b5 (diff)
* initial template
Diffstat (limited to 'include/Convert.class.php')
-rw-r--r--include/Convert.class.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/Convert.class.php b/include/Convert.class.php
new file mode 100644
index 0000000..90cc59c
--- /dev/null
+++ b/include/Convert.class.php
@@ -0,0 +1,15 @@
+<?php
+
+class Convert {
+
+ public static function decodePseudoUTF($string) {
+ $ret = str_replace(
+ ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ć','Ź','ń','ń','e̜'],
+ ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ź','Ć','ń','ń','ę'],
+ $string);
+ return $ret;
+ }
+
+}
+
+?> \ No newline at end of file