473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

got  symbol in browser

160 100+
hi to all

i have a strange problem. when i include php file above html tags then its all right

but when i include my header (php file) after html tags then i got this symbol
on browser 

my code when i got this symbol is

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>title</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <link href="css/style.css" rel="stylesheet" type="text/css">
  6. </head>
  7. <body>
  8. <? include("includes/top.php"); ?>
  9.  
please give me some solution. i think i am posting in right category (HTML forum).
Apr 15 '09 #1
13 3608
Dormilich
8,658 Expert Mod 8TB
what encoding has top.php? if it's not latin-1 or ascii, all out-of-range characters are displayed weirdly.
Apr 15 '09 #2
waqasahmed996
160 100+
symbol appear even if i wrote nothing in top.php except

Expand|Select|Wrap|Line Numbers
  1. <?
  2. die();
  3. ?>
  4.  
Apr 15 '09 #3
Dormilich
8,658 Expert Mod 8TB
could be a BOM (Byte Order Mark)
Apr 15 '09 #4
waqasahmed996
160 100+
how can i identify if there is any BOM in php

and how can i remove it
Apr 15 '09 #5
Dormilich
8,658 Expert Mod 8TB
open the file in a good editor, select "display invisible characters" the BOM should be appearing at the very beginning (well, depending on the editor), if not write the file new but don't copy the first line. remember to save the file as Latin-1, not UTF-8.
Apr 15 '09 #6
waqasahmed996
160 100+
i am using dreamweaver as a editor

can i identify BOM in dreamweaver

what could be the other reason other than BOM to show this symbol 
Apr 15 '09 #7
Dormilich
8,658 Expert Mod 8TB
@waqasahmed996
I don't know, but I guess not
@waqasahmed996
BOM is U+FEFF, a multibyte sign. if you interpret it using Latin-1 (which is not multibyte) the bytestream is interpreted as several characters included in the charset.
Apr 15 '09 #8
waqasahmed996
160 100+
if i change following code then this symbol could be removed?

currently i am using this code

Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  2.  
Apr 15 '09 #9
Dormilich
8,658 Expert Mod 8TB
@Dormilich
that should do it (best is you open it using latin-1 as default charset).

if all fails, use UTF-8 as encoding (but you need to re-encode the other non-UTF-encoded files). if you're using a DB, check for the content-encoding there first.
Apr 15 '09 #10
waqasahmed996
160 100+
thanks Dormilich. you really provide me great help. my problem is solved by using following code.

Expand|Select|Wrap|Line Numbers
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  2.  
will other application be effected by using utf-8. actually i am given this task only to remove this symbol. other coding is not done by me. thats why i am asking that php code could be effected by using utf-8
Apr 15 '09 #11
Dormilich
8,658 Expert Mod 8TB
@waqasahmed996
if you're loading data not encoded in utf-8, all (I think so) characters outside the ASCII range will be affected. (e.g. chars in languages like French, German, Spanish, Russian)
Apr 15 '09 #12
drhowarddrfine
7,435 Expert 4TB
Look at the options in Dreamweaver for saving files. I believe there is an option to select the character encoding to save it in. Nowadays, people should have their html files in utf-8.
Apr 15 '09 #13
Dormilich
8,658 Expert Mod 8TB
@drhowarddrfine
unless there are problems your chosen script language or browser has with Unicode.
Apr 15 '09 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Astra | last post by:
Hi All This is really bizarre prob that I don't know how I'm going to get round it. In essence I have created a site that allows the user to select their preferred shoe size, this then gets...
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
0
by: Anders Eriksson | last post by:
Hello! I have just started to port one of my applications (a dll) to VC++ 7.0 (.Net 2002) an I have some trouble with the Object Browsing/Find Symbol. I have configured the project so that it...
2
by: junk | last post by:
Hi, Sorry if this has been asked before, and apologise if this is the wrong NG. I am using PHP 5.0.5 and Apache 2.0.54 in a Win2k environment. Lately I have been playng with RSS feeds. I...
8
by: Zox | last post by:
Hi all, There is a symbol used in Paris for the Metro system, which is a capital M inside a circle. It's used in tourist guidebooks and in weekly papers and such. Does HTML have an...
2
by: Shooting | last post by:
Is there any tools can help me to find all the pointer operation in my source code? I'am using the vs.net 2005. It seems that all the symbol information is in the .pdb file. How can I get them? ...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
2
by: sasingh75 | last post by:
We have a strange problem using trademerk symbol in our emails. We store certain templates in database as long text. A aprt of the text looks as shown below. "Please access the XYZ â„¢ site to...
2
by: Grom | last post by:
Hello. Do you know symbol that rotates text at 180 degrees? I need that :)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.