Page 1 of 1
symbol?
Posted: Thu Dec 06, 2007 1:45 am
by FireElement
Hello,
I am trying to get the following symbols to print out when called from a sql database € and ¥ . I keep getting a �.
Can anyone tell me how I can decode the symbols so they come out normally!
Thanks
Posted: Thu Dec 06, 2007 4:43 am
by php_daemon
utf8_encode()
Posted: Thu Dec 06, 2007 4:57 am
by devendra-m
I think you should set this at top in php
ini_set('default_charset', 'UTF-8');
and html
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
and do not use css to print that kind of symbols
i hope it works
Posted: Thu Dec 06, 2007 7:51 am
by FireElement
devendra-m wrote:I think you should set this at top in php
ini_set('default_charset', 'UTF-8');
and html
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
and do not use css to print that kind of symbols
i hope it works
I have <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
at top of every page so its not that....
But I will ini_set('default_charset', 'UTF-8');
see if that works...
Posted: Thu Dec 06, 2007 7:59 am
by FireElement
php_daemon wrote:utf8_encode()
that did not work

Posted: Thu Dec 06, 2007 8:07 am
by FireElement
devendra-m wrote:
But I will ini_set('default_charset', 'UTF-8');
It did not work....
Posted: Thu Dec 06, 2007 8:15 am
by FireElement
I worked out that using htmlenterties() gets all symbols notmal £ $ yan one but not this one.... ( € ) its euro.
Not sure why?
Posted: Thu Dec 06, 2007 8:26 am
by FireElement
anyone know how to decode to ISO-8859-1
Posted: Thu Dec 06, 2007 8:49 am
by FireElement
Its fine I just put all the symbols in html so it just calls the enterty!
Thanks For your help tho!