469,600 Members | 2,209 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

str_ireplace not replacing euro symbol

Hi,

For some reason str_ireplace and str_replace do not remove the euro symbol.
This is the code snip it:

$mremoveArray=array("","");
$tString=15,00;
$pa=str_ireplace($mremoveArray,'',$tString);

The pound sign is removed but not the euro.

Im using ISO-8859-15 encoding.

Thanks in advance.
Jul 17 '08 #1
1 2386
code green
1,726 Expert 1GB
I think it is something to do with the ASCII character set and your locale settings.
So the euro symbol is not recognised because it is not in the locale ASCII character set.
Haven't got a clue how to fix it though
Jul 18 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by VK | last post: by
1 post views Thread by Kevin | last post: by
7 posts views Thread by flm | last post: by
11 posts views Thread by MH | last post: by
18 posts views Thread by gabriel | last post: by
2 posts views Thread by tilmann | last post: by
5 posts views Thread by SalamElias | last post: by
8 posts views Thread by Max | last post: by
7 posts views Thread by Robertu | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.