when i enter a pound symbol - £ - into my code it appears as an unknown symbol... its in the code and doesnt go into the db.
im using codeigniter, notepad++ on windows and have added
<?php header("Content-type: text/html; charset=utf-8");?>
to the top of my page-
Pound symbols that go in and out of the db seem to be fine but when the symbol is hard coded, i get the error symbol.
what am i doing wrong?
Set the php file ( where you whant to hardcode the pound simbol ) document encoding to utf-8 . If that doesn't work you can allways use £
or £
witch you're browser will render as a pound sign .
In your <head>
make sure you set
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Also try the MySQL statement
SET NAMES 'utf8'
Your source-file is probably not encoded in UTF-8. The easiest method is to change the encoding of that file. Notepad++ can convert it for you, as far as i remember.