Page 1 of 1

International characters

Posted: Mon Feb 11, 2008 11:08 am
by PhpDog
I have a mssql table that I have to work with which contains entries like:

a) Payment of ce4.00 received

When displayed by PHP in a webpage (verdana font) it shows as:

b) Payment of œ4.00 received

I actually think it should say:

c) Payment of £4.00 received.

How can I correct this so my web application displays as example c) please?

Re: International characters

Posted: Mon Feb 11, 2008 11:23 am
by liljester
you could use the HTML escape for the pound sign (£) when you display. you would have to replace the "ce" part of your data, possibly with the str_replace() function.

Code: Select all

$ouput = str_replace("ce", "£", $db_entry);
There may be a better way out there to do this, Im not sure.

Re: International characters

Posted: Mon Feb 11, 2008 12:28 pm
by PhpDog
Thanks. That will nail it for now.