navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

charset query

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> charset query
Page: [1]
 
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
charset query - 3/4/2007 6:32:06   
Which is the correct/best meta to use in relation to "charset"

iso-8859-1? (western europe - I'm in UK)
UTF-8? (this causes a warning when validating at w3c
what?

Thanks

While we're at it - what do people consider absolutely essential/very helpful matatags?

_____________________________

Regards, Rick
On-The-Web-Now!
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 6:36:05   
quote:

UTF-8? (this causes a warning when validating at w3c
what?
It only causes a warning if you have the wrong content=" in the statement. I suspect yours says xml? You need:

content="text/html" this is the meta I use and it validates fine

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

I just posted about this in another thread. For some reason MS sticks the UTF-8 lines in as xml. Change it.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 6:44:14   
quote:

While we're at it - what do people consider absolutely essential/very helpful matatags?
It depends.

I have the following:

<meta name="verify-v1" content="rypaPP2C74gjKVJCnkAUg5rFRKeL926Lc6Y08ciffII=" />
<meta name="robots" content="index,follow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="JBVisions, home page, web site, web design, accessible, web designer, Berkshire, Berkshire web, Thatcham, UK, England, JB Visions, JB webs, JB design, design england, web site design, web site designer" />
<meta name="Description" content="JBVisions - creative web design in Thatcham Berkshire. Accessible, cost effective web solutions for small to medium enterprises and sole traders." />
<meta name="author" content="JBVisions" />
<meta name="copyright" content="© JBVisions" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://jbvisions.co.uk" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0) gen true for "http://www.jbvisions.co.uk" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))' />
<meta http-equiv="imagetoolbar" content="no"/>


and I use those as a base for most of my client sites. If I had to do without any it would be author and copyright

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/4/2007 11:13:48   
quote:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


The above is exactly what I have - is this correct or incorrect?

In my HTML tag I have:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb">


This was taken from w3c site - is this causing the problem (warning)?


Will come back to you on a couple of those metatags

thank you

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 12:00:02   
No, that should be fine. I have

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB" dir="ltr">

<head>
<title>JBVisions - creative web design - Glossary</title>
<meta name="robots" content="index,follow" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


it all goes through the validator fine. The only time I got warnings about UTF-8 was when my meta said xml instead of text/html. If you're not sure about you code then you're welcome to check out what I have on my site.

You've not got one of these <xml lines at the top of the page have you? Have you got a link I can look at?




< Message edited by jaybee -- 3/4/2007 12:06:36 >


_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/4/2007 12:51:05   
It's my own site - link at foot.

I'm just in the process of tweaking things a bit - changing from HTML to XHTML, and trialing EW in the process.

While you're looking, if it isn't too much trouble can you check the foot of the pages in IE6. In IE7 FF (and all else I've tried) there is no margin between the three white boxes and the text underneath, in IE 6 it puts a margin/padding - also extra marg/pad above the boxes. I can summarise the div layouts if need be to save trawling through everything but you/someone might know the particular problem in an instant (?)

(I'm just tweaking pages since uploading the site so take no notice of the fine detail that's being reworked now)

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 13:20:30   
Your problem is in the css.

/*********** GENERAL ***********/
body        
{
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, Sans-Serif;
	font-size: 70%;
	color: #111;
	line-height: 150%;
	background: #EAF1F4 url('../images/all-pages/bgnd-body.gif') center repeat-y;
}


It's stuck the BOM (byte order mark) on the front, see those odd characters?

This is what drives me nuts about editors, some of them keep sticking that in there for no apparent reason. I've had the same problem in the past. The way I got round it was open the css up in notepad from Explore, take those characters off then save the file and upload it to the host.

After that, EW seems happy to let it lie. More of a problem with PHP files as it seems to do it relentlessly with those.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 13:25:54   
Footer looks identical in IE6.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/4/2007 15:04:35   
Thanks for your help here Jaybee

First the BOM: I just downloaded the style sheet and opened in in NotePad but can't see it! When I run it through W3C validator it does show 3 little squares at the start though. I certainly can't see it or edit anything locally!

Re IE6 rendering of the foot of the page... I have IE6 as a stand alone install on one PC and it is sure doing it there! (?)

BUT WAIT... Now I have the quirkiest bug ever!!! ...
I've just uploaded the site again (using EW ftp) and all my images (on right of most pages) have gawn diddly! Despite the HTML specifying the image sizes!!!... What now!!!:)

I'm giving up today:)

edit... okay, solved it (the last one) EW decided to write a rule in my style sheet for images in that div: height: 80px; width: 60px; - I used those dimensions in one page once (not on the site now) and it must have took them out and placed them in the style sheet for me - how kind! I'm really going off this new editor:)



< Message edited by RickP -- 3/4/2007 15:15:02 >


_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 16:22:34   
quote:

how kind! I'm really going off this new editor:)
:) Well it is a trial you downloaded, I'm wondering if it's got corrupted somehow.

As for not seeing the BOM in the code, yep, I've had that happen too and not just with EW and FP. I tried a whole load of different editors out for a client and it happened in loads of places. I emailed one lot and asked them whether it was possible to turn off the BOM if using utf-8 and they said, no. It might be possible in the next version.

If it's causing this much trouble you might be better sticking with the old windows encoding. Problem is you still have to get rid of the BOMs.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/4/2007 16:24:57   
Sheesh, just uploaded changes to my stylesheets and guess what. :)

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to jaybee)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/5/2007 7:42:32   
quote:

Sheesh, just uploaded changes to my stylesheets and guess what.


What? What happened!?

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/5/2007 8:04:43   
Good Lord! Are you still here. :)

What happened? My stylesheets had BOMs again. Darn nuisance. I'm seriously thinking of changing the encoding on anything I do using EW to anything other than UTF-8.

I'm beginning to think it might have something to do with the uploads and the files going up as binary instead of Ascii but don't take my word for it.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/5/2007 8:36:25   
Yes, still here, I just had a nights sleep between posts!:)

But what are the best options for encoding?

FP used to insert: "charset=windows-1252"

and there are other options depending on global areas. But what are the implications of these different options?

Let me know if you get any further with bombing the BOM problem!

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/5/2007 9:01:32   
quote:

what are the implications of these different options?
http://en.wikipedia.org/wiki/Character_encoding

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/5/2007 9:06:58   
That's far too much reading - can't you just tell which one to use Jaybee:):)

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to jaybee)
coreybryant

 

Posts: 2500
Joined: 3/17/2002
From: Castle Rock CO USA
Status: offline

 
RE: charset query - 3/5/2007 9:27:05   
Meta tags has a bit of information as well to read to help understand

_____________________________

Corey R. Bryant
Merchant Accounts | Toll Free Numbers | Expression Web Blog

(in reply to RickP)
RickP

 

Posts: 693
Joined: 11/13/2004
From: Kent, U.K.
Status: offline

 
RE: charset query - 3/5/2007 10:49:28   
thanks - might just go with "charset=ISO-8859-1" for now

_____________________________

Regards, Rick
On-The-Web-Now!

(in reply to coreybryant)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: charset query - 3/5/2007 10:51:24   
Good call.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to RickP)
Page:   [1]

All Forums >> Web Development >> General Web Development >> charset query
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts