Jump to content

Converting charictor after DB query


the_oliver

Recommended Posts

Hello,

 

I have a problem where text is stored in a database.  When the text is extracted via a query the £ charictor comes up as strange charictors in some browsers.  I tried

 

header("Content-Type: text/html; charset=utf-8");

 

but that just change the browsers which had the problems!

 

What i was wondering was wheter i could scearch throught the data returned from the query, and replace any £ with the html code for £?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/50918-converting-charictor-after-db-query/
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.