Question: As there is no OSX specific version, I downloaded the Linux version. Unzipped it and launched the launchpad.app. 

I see a java applet on screen, but when I click on install code rally, I get no response.

Please advise on steps to install. Thank you very much.

Answer: 
If your source file character encoding is UTF-8 then € is a multibyte char. str\_replace only works for ISO-8859-1 / Latin1 strings properly.

Try something like this:

```
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");

$city = array( "€ 50","€ 65","€ 65");

foreach ($city as $citi) {
    $as = mb_eregi_replace('€','',$citi);
    var_dump($as); 
    echo '<br>';
}

```

I updated the example to better suit the example code of yours.

Output:

```
string(3) " 50" 
string(3) " 65" 
string(3) " 65" 

```

You may add a trim() to get rid of the whitespace.
Try this.

```
$var = "€ 66 ";
$change = str_replace("&euro;", "", htmlentities(trim($var)));

echo $change;

```