?
Solved

problems displaying some characters

Posted on 2003-03-31
4
Medium Priority
?
196 Views
Last Modified: 2010-04-09
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
Comment
Question by:boig
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:ahprod
ID: 8251104
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
 

Accepted Solution

by:
boig earned 0 total points
ID: 8251990
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 8820636
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 9016158
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question