PDA

View Full Version : [PHP] Remove  from string?



Moh
16-12-2010, 09:08 PM
I never really knew why you get these in strings, I gather its something to do with the encoding?

http://www.habbcrazy.net/jack/roomname.php?id=17121341

Anybody know of any functions to remove it?

Thanks

Moh
17-12-2010, 02:34 AM
Did it in the end :)

Joe!
17-12-2010, 01:13 PM
How did you manage to do it in the end then?:)

Moh
17-12-2010, 03:27 PM
http://www.php.net/manual/en/function.iconv.php

$string = iconv( 'UTF-8', 'ISO-8859-15//TRANSLIT', $string );

Want to hide these adverts? Register an account for free!