Forum Moderators: phranque

Message Too Old, No Replies

£ sign displays as a �

         

fzx5v0

8:45 pm on Jun 29, 2007 (gmt 0)

10+ Year Member



Hi

Do not know if this is the right place to put this but in som ocasions i am getting the £ sign displaying as a �

if i want the pound sing to display correctly i have to use £ but this does not help with php or other places where i can not use £

any help would be apriciated

londrum

9:06 pm on Jun 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



try £

menial

9:18 pm on Jun 29, 2007 (gmt 0)

10+ Year Member



You can use this function:

function convert_entities($a){

$b=array('£');

$replace=array('£');

return str_replace($b, $replace, $a);

}

fzx5v0

8:16 pm on Jul 1, 2007 (gmt 0)

10+ Year Member



Hi thanks for the responces but I have not been clear enough

the problem is everytime i try to display a £ symbol it displays as a little square.

I do not understand why the symbol is doing this

thanks as i need to use the £ symbol

thanks

londrum

8:33 pm on Jul 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it's a bit difficult to tell what symbol you're talking about. because everytime you type it onto this forum, i'm seeing it as a question mark.

try changing your header to UTF-8.
that is the charset that includes every symbol under the sun.
just doing a meta tag won't help though. if you are using php, then put this at the start of the page:

header('Content-Type: text/html; charset=UTF-8');

slmandle

1:36 pm on Jul 2, 2007 (gmt 0)

10+ Year Member



This is an encoding issue as stated in the last post

The encoding on the browser is setting itself to Western European (windows) or something like this

you can change the encoding either in php like above or in html like below

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

vincevincevince

2:19 pm on Jul 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know why you can't use &pound; in PHP... I do it quite frequently.