Make sure your script file is a file containing a line
$currency = 'β¬';
encoded by UTF-8. You should have this option in the editor or in the Save As dialog box.
Then make sure your connection is also encoded in UTF-8 encoding - the default is ISO-8859-1.
After connecting to the database for mySQL up to 5.0.7:
mysql_query("SET NAMES utf8");
For mySQL 5.0.7 and later:
mysql_set_charset("utf8");
Pekka μ
source share