Jump to content

why my content showing as squares when i am pulling data from database?


phpmady

Recommended Posts

Hi,

 

I am  calling the content from tables, where my arabic content is placed, when am pulling its showing as squares,

whats the reason, I have attached the file,

 

other pages are working fine for me, regarding arabic content, but this page am geting error,

 

thanks in Advance

 

[attachment deleted by admin]

This will be an encoding issue of some kind. Try placing this at the top of your code....

 

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

 

Hi,

 

I tried by inserting the line in the top of the page, but not working,

 

 

This will be an encoding issue of some kind. Try placing this at the top of your code....

 

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

 

Hi,

 

I got some idea from your reply, now my data is displaying correctly by using this

 

text/html; charset=windows-1256"

 

But the Problem am getting now is, when i hard code Arabic  content in the page, it showing diffrently ط³ظٹط¨ ط³ظٹط´ط like this

 

what might be the problem

Thank You

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.