Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - ISO-8859-1

 
Thread Tools Search this Thread
Old 11-03-2004, 09:36 PM   #1
Default ISO-8859-1


I've got some content managed pages where content is pasted in from
some other source.

This is causing some characters to appear as "?" marks in IE (Win and
Mac) and little square boxes in Opera.

Changing the character set in Opera to ISO-8859-1 fixes that.

The server is sending out charset=UTF-8 and the page contains this:

<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">

It looks like the server content type is winning out.

Should I change the server charset to iso-8859-1?

Does the case matter in character set declarations?

Jeff


Jeff Thies
  Reply With Quote
Old 11-03-2004, 09:37 PM   #2
Philip Ronan
 
Posts: n/a
Default Re: ISO-8859-1

Jeff Thies wrote:

> Should I change the server charset to iso-8859-1?


yes

> Does the case matter in character set declarations?


no

--
Philip Ronan

(Please remove the "z"s if replying by email)


  Reply With Quote
Old 11-03-2004, 09:40 PM   #3
David Dorward
 
Posts: n/a
Default Re: ISO-8859-1

Jeff Thies wrote:

> Changing the character set in Opera to ISO-8859-1 fixes that.


> The server is sending out charset=UTF-8 and the page contains this:
> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">


> It looks like the server content type is winning out.


Yes, the specification says that real http headers trump http-equiv.

> Should I change the server charset to iso-8859-1?


.... or the document to UTF-8.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  Reply With Quote
Old 11-03-2004, 09:42 PM   #4
brucie
 
Posts: n/a
Default Re: ISO-8859-1

In alt.html Jeff Thies said:

> The server is sending out charset=UTF-8 and the page contains this:
> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
> It looks like the server content type is winning out.


as it should

<quote>
[...] conforming user agents must observe the following priorities when
determining a document's character encoding (from highest priority to
lowest):
1. An HTTP "charset" parameter in a "Content-Type" field.
2. A META declaration with "http-equiv" set to "Content-Type" and a
value set for "charset".
3. The charset attribute set on an element that designates an external
resource.
</quote> http://www.w3.org/TR/html401/charset.html#h-5.2.2

> Should I change the server charset to iso-8859-1?


yes

> Does the case matter in character set declarations?


<quote>
[...] Names for character encodings are case-insensitive, so that for
example "SHIFT_JIS", "Shift_JIS", and "shift_jis" are equivalent.
</quote> http://www.w3.org/TR/html401/charset.html#h-5.2.1


--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
  Reply With Quote
Old 11-03-2004, 11:45 PM   #5
Eric B. Bednarz
 
Posts: n/a
Default Re: ISO-8859-1

Jeff Thies <> writes:

> I've got some content managed pages where content is pasted in from
> some other source.


[x] define 'pasted in'

> The server is sending out charset=UTF-8 and the page contains this:
>
> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">


That's bogus of course, and one of the reasons to avoid that kludge
altogether.

> It looks like the server content type is winning out.


That's the correct behaviour, as already mentioned.

> Should I change the server charset to iso-8859-1?


If everything 'pasted in' is encoded as Latin 1, the answer may be
'yes'. In many scenarios you don't know that in advance and you should
probably look that up in the documentation of the content management (if
any exists) or otherwise determine the backend language and locate a
newsgroup that deals with it (depending on several factors, this can be
a not-too-trivial issue).


--
| ) Più Cabernet,
-( meno Internet.
| ) http://bednarz.nl/
  Reply With Quote
Old 11-04-2004, 11:58 AM   #6
Jim Higson
 
Posts: n/a
Default Re: ISO-8859-1


You could try just converting everything to utf8, and then serving it as
such.

The increase in filesize will be nothing to little, and will solve a lot of
headaches.

  Reply With Quote
Old 11-04-2004, 07:50 PM   #7
Jeff Thies
 
Posts: n/a
Default Re: ISO-8859-1

Jim Higson wrote:
> You could try just converting everything to utf8, and then serving it as
> such.
>
> The increase in filesize will be nothing to little, and will solve a lot of
> headaches.
>

How do you do that?

Jeff
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump