657 | | $chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158) |
658 | | .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194) |
659 | | .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202) |
660 | | .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210) |
661 | | .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218) |
662 | | .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227) |
663 | | .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235) |
664 | | .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243) |
665 | | .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251) |
666 | | .chr(252).chr(253).chr(255); |
| 657 | $chars = array( |
| 658 | chr(128) => 'E', chr(131) => 'f', |
| 659 | chr(138) => 'S', chr(140) => 'OE', |
| 660 | chr(142) => 'Z', chr(154) => 's', |
| 661 | chr(156) => 'oe', chr(158) => 'z', |
| 662 | chr(159) => 'Y', chr(162) => 'c', |
| 663 | chr(165) => 'Y', chr(181) => 'u', |
| 664 | chr(192) => 'A', chr(193) => 'A', |
| 665 | chr(194) => 'A', chr(195) => 'A', |
| 666 | chr(196) => 'A', chr(197) => 'A', |
| 667 | chr(198) => 'AE', chr(199) => 'C', |
| 668 | chr(200) => 'E', chr(201) => 'E', |
| 669 | chr(202) => 'E', chr(203) => 'E', |
| 670 | chr(204) => 'I', chr(205) => 'I', |
| 671 | chr(206) => 'I', chr(207) => 'I', |
| 672 | chr(209) => 'N', chr(208) => 'DH', |
| 673 | chr(210) => 'O', chr(211) => 'O', |
| 674 | chr(212) => 'O', chr(213) => 'O', |
| 675 | chr(214) => 'O', chr(216) => 'O', |
| 676 | chr(217) => 'U', chr(218) => 'U', |
| 677 | chr(219) => 'U', chr(220) => 'U', |
| 678 | chr(221) => 'Y', chr(222) => 'TH', |
| 679 | chr(223) => 'ss', chr(224) => 'a', |
| 680 | chr(225) => 'a', chr(226) => 'a', |
| 681 | chr(227) => 'a', chr(228) => 'a', |
| 682 | chr(229) => 'a', chr(230) => 'ae', |
| 683 | chr(231) => 'c', chr(232) => 'e', |
| 684 | chr(233) => 'e', chr(234) => 'e', |
| 685 | chr(235) => 'e', chr(236) => 'i', |
| 686 | chr(237) => 'i', chr(238) => 'i', |
| 687 | chr(239) => 'i', chr(240) => 'dh', |
| 688 | chr(241) => 'n', chr(242) => 'o', |
| 689 | chr(243) => 'o', chr(244) => 'o', |
| 690 | chr(245) => 'o', chr(246) => 'o', |
| 691 | chr(248) => 'o', chr(249) => 'u', |
| 692 | chr(250) => 'u', chr(251) => 'u', |
| 693 | chr(252) => 'u', chr(253) => 'y', |
| 694 | chr(254) => 'th', chr(255) => 'y'); |
668 | | $chars['out'] = "EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy"; |
669 | | |
670 | | $string = strtr($string, $chars['in'], $chars['out']); |
671 | | $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254)); |
672 | | $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th'); |
673 | | $string = str_replace($double_chars['in'], $double_chars['out'], $string); |
| 696 | $string = strtr($string, $chars); |