Welcome to Tech Support Forum home to more then 440,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Development
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Development Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 04-04-2009, 11:26 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: xp


Unwanted 'п»ї' text in header - shtml

I have some unwanted characters in the top left of my webpage(s) they are 'п»ї'. When I view the source from the explorer I can see the characters, but when I go back to the editor to delete them I can't see them!!
The URL is http://www.wiihabilitation.co.uk
How do I get rid of the п»ї ??
Thanks very much
wriggly_b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 04-04-2009, 11:36 AM   #2 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,663
OS: Windows XP [Version 5.1.2600] SP3 | Debian | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Unwanted 'п»ї' text in header - shtml

Your </head> needs to be moved to just below </script>.
This may have unwanted effects, but this is technically correct.
__________________
For some reason this doesn't work. Working on replacement or something.

Validate your Markup Validate your CSS Notepad++
Please use [HTML], [PHP], and [CODE] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-04-2009, 11:51 AM   #3 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: xp


Re: Unwanted 'п»ї' text in header - shtml

no joy I'm afraid. I have tried several combinations - as I notice I have 2 </script>
I'm not really a coder and rely heavily on the editing software which isn't offering very much help at the moment - so if you have any other suggestions I would really appreciate it!!
Thanks
wriggly_b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-04-2009, 08:51 PM   #4 (permalink)
Registered User
 
maretard's Avatar
 
Join Date: Dec 2007
Location: Georgia
Posts: 79
OS: Windows XP Home Edition, SP3

My System

Send a message via AIM to maretard Send a message via Skype™ to maretard
Re: Unwanted 'п»ї' text in header - shtml

Hmm... that's very odd... are you SURE you can't find the following line in your code?

HTML Code:
<div id="container">п»ї<div id="header">
If you're absolutely sure that line does not show up anywhere in your code, can you post the code so we can help you?
__________________
I'm ridin' dirty.
Oh baby, I'm yellow and nerdy.
maretard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 01:21 AM   #5 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: xp


Re: Unwanted 'п»ї' text in header - shtml

The following is from the shtml file: Then Below is the includes/menu.inc code (i have highlighted where it is in the code).
Thanks!!! - My only wonder was - does it have anything to do with the charset????

------------------------------------------------------------------
shtml file up to the content
------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<link href="style.css" rel="stylesheet" type="text/css" />

<script src="js/jquery.js" type="text/javascript"></script>

<script src="js/main.js" type="text/javascript"></script>

<title>Wii-Habilitation</title>

<style>
img
**
border: none;
}
/* */#preview
**
position: absolute;
border: 1px solid #ccc;
background: #333;
padding: 5px;
display: none;
color: #fff;
}
/* */</style>
</head>
<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

try **

var pageTracker = _gat._getTracker("UA-7315899-1");

pageTracker._trackPageview();

} catch(err) **}</script>
<body>
<div id="container"><!--#include file="Includes/menu.inc"-->
<div id="content">
<div id="left">
<h1>
Games</h1>

------------------------------------------------------------------
includes/menu.inc
------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18259"></HEAD>
<BODY><div id="header">
<div id="header_text">
</div>
<ul>
<li><A href="home.shtml">Home</a>
<li><A href="therapy.shtml">Therapy</a>
<li><A href="games.shtml">Games</a>
<li><a target="_blank" href="http://natstar.moodledo.co.uk/mod/forum/view.php?f=291">Forum</a>&nbsp;
<li><A href="resources.shtml">Resources</a>
<li><A href="mailto:enquiry@wiihabilitation.co.uk?subject=Wii-Habilitation enquiry">
Contact Us</a></li>
</ul>
<div id="logo_w2" style="Z-INDEX: 100; POSITION: absolute; TOP: 109px; LEFT: 23px">
<div align="right">
<div id="logo_w2" style="Z-INDEX: 100; POSITION: absolute; WIDTH: 225px; HEIGHT: 86px;
TOP: 15px; LEFT: 448px">
<p align="right">
<strong><font size="2">For those involved in the use of the Nintendo Wii as part of
therapy or rehabilitation</font></strong></p>
</div>
</div>
<strong><font size="7">Wii-Habilitation</font></strong>
</div>
</div></BODY></HTML>
wriggly_b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 03:35 AM   #6 (permalink)
Registered User
 
Join Date: Apr 2009
Posts: 4
OS: xp


Re: Unwanted 'п»ї' text in header - shtml

done it!!!
i have played around with the charset and replaced

<META content="text/html; charset=unicode" http-equiv=Content-Type>

with

<META content="text/html; charset=windows-1251" http-equiv=Content-Type>

and it works.....
Thanks to those who replied... :o) muchly appreciated!
wriggly_b is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 10:41 AM   #7 (permalink)
Registered User
 
maretard's Avatar
 
Join Date: Dec 2007
Location: Georgia
Posts: 79
OS: Windows XP Home Edition, SP3

My System

Send a message via AIM to maretard Send a message via Skype™ to maretard
Re: Unwanted 'п»ї' text in header - shtml

Good job for getting it working, although I for one don't know why the charset would introduce that garbled stuff into your code...

Oh well, perhaps dm01 will have more input on this one.
__________________
I'm ridin' dirty.
Oh baby, I'm yellow and nerdy.
maretard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 11:02 AM   #8 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,663
OS: Windows XP [Version 5.1.2600] SP3 | Debian | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Unwanted 'п»ї' text in header - shtml

Of course! That's a byte-order mark (BOM) that the browser has mis-interpreted as display text. Unicode uses them for a reason I don't fully understand. They are incredibly annoying for those who can't track down the cause.

Windows-1251 isn't exactly web standard, but if it works, I wouldn't change it. If you really want complete cross-compatibility, use UTF-8:
HTML Code:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
UTF can be used either with or without BOM, please make sure you select without BOM in your text editor. Otherwise, the problems will return.
__________________
For some reason this doesn't work. Working on replacement or something.

Validate your Markup Validate your CSS Notepad++
Please use [HTML], [PHP], and [CODE] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 11:05 AM   #9 (permalink)
Registered User
 
maretard's Avatar
 
Join Date: Dec 2007
Location: Georgia
Posts: 79
OS: Windows XP Home Edition, SP3

My System

Send a message via AIM to maretard Send a message via Skype™ to maretard
Re: Unwanted 'п»ї' text in header - shtml

Whoa. Did not know that.

So what specific character was the BOM that the browser misinterpreted in his code?
__________________
I'm ridin' dirty.
Oh baby, I'm yellow and nerdy.
maretard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-05-2009, 11:26 AM   #10 (permalink)
Moderator: Design
 
dm01's Avatar
 
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,663
OS: Windows XP [Version 5.1.2600] SP3 | Debian | Windows 7 Ultimate (MSDNAA I <3 you)

My System

Re: Unwanted 'п»ї' text in header - shtml

Those three that he was asking about.

Stay away from straight Unicode, or this may well happen to you. Use UTF-8 without BOM. ANSI has problems of its own.
__________________
For some reason this doesn't work. Working on replacement or something.

Validate your Markup Validate your CSS Notepad++
Please use [HTML], [PHP], and [CODE] when posting code or markup.
I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:47 PM.



Copyright 2001 - 2010, Tech Support Forum
Auto Support Forum | Brew Plus | Freemason Hall | Outdoor BaseCamp
Home Tips Plus | Herbalist Hut | Father Adviser | Budget Clowns

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84