• 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:

--------------
<HEAD>
 <TITLE>XXXXXXXXXXXXXXXXXXXX</TITLE>
 <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}
 </STYLE>
</HEAD>
---------------

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?
0
boig
Asked:
boig
  • 2
1 Solution
 
ahprodCommented:
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.
0
 
boigAuthor Commented:
at last I found the solution by myself; I just needed to add a header to PHP:

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

otherwise thanks for answering me.
0
 
COBOLdinosaurCommented:
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.

<note>
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.
</note>

If the user does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp


Cd&

0
 
COBOLdinosaurCommented:
It is time to clean this abandoned question up.

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

<recommendation>
PAQ

</recommendation>

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

Cd&

0

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