Posted by david on 07/26/07 11:01
It could be ridiculous, but right now I decided to use this function: function fix_string($str) { $bad = Array(' ', ' ', 'æ', ' ', ' ', ' ', 'ø', ' ', ' ', ' ', ' ', 'Æ', ' ', ' ', ' ', 'Ø', ' ', ' '); $fix = Array('ą', 'č', 'ę', 'ė', 'į', 'š', 'ų', 'ū', 'ž', 'Ą', 'Č', 'Ę', 'Ė', 'Į', 'Š', 'Ų', 'Ū', 'Ž'); return str_replace($bad, $fix, $str); }
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming