Jump to content

how do i return UTF-8 from a function ?


ricky spires

Recommended Posts

hello.

 

im having a strange issue with a file.

 

my php page is working fine : <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

 

all £ signs look as they should but if i have a £ sign in a function it comes back as a ? in a diamond.

 

this a short version of the function:


function stopDeals() {

echo '			
<b>for only £7.83 p/m</b></span></p>
';
} 

 

 

thankyou

rick

Link to comment
https://forums.phpfreaks.com/topic/221115-how-do-i-return-utf-8-from-a-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.