I wrote a php script to parse a plain/text csf file to import some data in a mysql database.
Now i have a big trouble with euro currency symbol (€).
I need to replace all data values i parsed wich contain the substring "€ " but neither ereg_replace nor preg_replace seem to work with my script.
I used alternativally the following sentences to parse the substring above:
direct string
<?php
...
ereg_replace("€ ","",$stringtoparse");
...
?>
Microsoft hex value string (i don't know if it's right i find it in another forum)
<?php
...
ereg_replace("\x80 ","",$stringtoparse");
...
?>
using pcre functions:
direct string
<?php
...
preg_replace("/€ /","",$stringtoparse");
...
?>
<?php
...
preg_replace("/\x80 /","",$stringtoparse");
...
?>
octal value \244 (is it correct ?)
<?php
...
preg_replace("\244 ","",$stringtoparse");
...
?>
I tryed to use unicode hex value but with no result.
<?php
...
preg_replace("\x8264 ","",$stringtoparse");
...
?>
Is there anyone who could help me?
Thanks.