• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

problems displaying some characters

I read data from a mySQL database with PHP and show it via web.

Some characters appear as 'squares', but if I change charset to
"iso-8859-1" they display correctly. When you open the web
the <head> is:

 <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
 <STYLE type=text/css>
   A:link {TEXT-DECORATION: none}
   A:visited {TEXT-DECORATION: none}
   A:active {TEXT-DECORATION: none}

but it is opening as "iso-8859-15". If you change your browser charset to "iso-8859-1" you see it correctly.
I have tested it with IE and Mozilla.
And when I save the web using IE charset tag is AUTOMATICALLY changed to "iso-8859-15".

does anybody know why is this happening and how to fix it?
  • 2
1 Solution
Use perl CGI to manually print out the stuff on the page. While this is boring to make and adds a bit of overhead to the page, it should bypass IE changing stuff.
boigAuthor Commented:
at last I found the solution by myself; I just needed to add a header to PHP:

header('Content-type: text/html; charset=iso-8859-1');

otherwise thanks for answering me.
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.

Unless it is clear to me that the question has been answered I will recommend delete.  It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

If the user does not know how to close the question, the options are here:


It is time to clean this abandoned question up.

I am putting it on a clean up list for CS.



If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.



Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now