![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,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: * 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 |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#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 |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,433
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
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.
__________________
![]() 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. |
|
|
|
|
|
#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 |
|
|
|
|
|
#4 (permalink) |
|
Registered User
|
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">
__________________
I'm ridin' dirty. Oh baby, I'm yellow and nerdy. |
|
|
|
|
|
#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> <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> |
|
|
|
|
|
#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! |
|
|
|
|
|
#7 (permalink) |
|
Registered User
|
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. |
|
|
|
|
|
#8 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,433
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
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" />
__________________
![]() 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. |
|
|
|
|
|
#10 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,433
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
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.
__________________
![]() 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. |
|
|
|
![]() |
| Thread Tools | |
|
|