View Full Version : A little "" is showing at the top of my site?
Blurple 04-12-2008, 08:39 PM ok, so i must have edited the php file for the main page on accident and it made the little "" symbols show up at the top of the page. How do i get rid of these??
my website is markcards, the link is in my signature if it helps to look at it??
gate2vn 04-12-2008, 09:16 PM That's an unicode sign. You will need to open your page in an editor which doesn't support for unicode characters, then you can delete it, at the top of page
Blurple 04-12-2008, 11:20 PM and whats a good program for that?
ive tried a few times and i can't find it??
Blurple 04-12-2008, 11:49 PM I currently use microsoft web expressions to upload all my files and now that little symbol showed up? i use oscommerce from creloaded.
I would like to know:
what program to use?
what file might it be in?
are there any tutorials for removing this?
Thank you,
Markus
Vinayak_Sharma 04-13-2008, 12:34 AM Open that file in notepad to edit, or use some good PHP Editor.
Open that file in notepad to edit, or use some good PHP Editor.
notepad is more than enough if you are going to just edit the file alone and i would recommend Macromedia dreamweaver for extensive purposes!
Blurple 04-13-2008, 11:22 AM ok, i tried to use notepad and i didn't find it. i even used ctrl+f to try to find the symbols, but i had no results?
Where should i be looking? what file?
Vinayak_Sharma 04-13-2008, 11:59 AM Where should i be looking?
It depends, if you are using DIV tags, it may not be there in the start, so see how the layout is designed.
what file?
Again depends, if you have another files included in the main file, it could be because of any of them.
So, is this file a standalone file, without including other files?
How the design/layout is done?
Is it live somewhere on the internet, if you think nothing sensitive or secret in there, post the URL.
Vinayak_Sharma 04-13-2008, 12:02 PM Oh sorry, I somehow missed the last line in your opening post.
Well I just had a look at markcards site and can't find that "" symbols any where. I checked it in FireFox & IE.
Is it live somewhere on the internet, if you think nothing sensitive or secret in there, post the URL.
I think this should make you easily solve your problem.
Vinayak_Sharma 04-13-2008, 12:05 PM Ok I just had a look at the source of it and found:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
As the first line.
Check that line, are there blank spaces or something in there. If that line is not there in the index file, may be it is using some template where "DOCTYPE" is defined.
Blurple 04-13-2008, 05:15 PM ok i found <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> but there is nothing wrong as far as i can see? i know html and im not very good with php.
this is the very first part of main_page.tpl.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<?php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<title><?php echo TITLE ?></title>
<?php
}
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="<? echo TEMPLATE_STYLE;?>">
<?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } ?>
</head>
is there anything i need to change here?
Blurple 04-13-2008, 05:30 PM ok i changed the <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
with
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
and now it looks like this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <?php echo HTML_PARAMS; ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<title><?php echo TITLE ?></title>
<?php
}
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="<? echo TEMPLATE_STYLE;?>">
<?php if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) { require(DIR_WS_JAVASCRIPT . basename($javascript)); } ?>
</head>
but now it says dir="LTR" lang="en" instead of the other stuff
Blurple 04-13-2008, 05:34 PM ok, by taking away <?php echo HTML_PARAMS; ?> which i think microsoft web expressions automatically adds takes away the stuff at the top, hehe. now it shows up good in both IE and FF. thanks for all the help, it really got me thinking!!
|