Thread: website charset

website charset

From
Dennis Björklund
Date:
There is no declaration of charset in the main webpage. Something like

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

would be nice. What is worse is that there are several charsets used. In
the International part I have to set mozilla to use utf-8 for it to be
rendered correctly and in the Event part I have to tell mozilla to use
iso-8859-1. There is not one setting that can show the whole page.

There really should be only one charset on the page, and it should be
specified so that the browser can show it right and not have to guess.

-- 
/Dennis



Re: website charset

From
"Dave Page"
Date:
It's rumoured that Dennis Björklund once said:
> There is no declaration of charset in the main webpage. Something like
>
> <meta content="text/html; charset=iso-8859-1"
> http-equiv="Content-Type">
>
> would be nice. What is worse is that there are several charsets used.
> In the International part I have to set mozilla to use utf-8 for it to
> be rendered correctly and in the Event part I have to tell mozilla to
> use iso-8859-1. There is not one setting that can show the whole page.
>
> There really should be only one charset on the page, and it should be
> specified so that the browser can show it right and not have to guess.

There was. Justin, did you say you tweaked the charset the other day? I
don't have my email archives to hand...
Regards, Dave.




Re: website charset

From
Justin Clift
Date:
Hi Dennis,

Looking at the source for the main webpage through Mozilla, I'm getting 
this:

***********

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!-- header -->
<html>
<head>
<title>PostgreSQL</title>
<meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Author" content="Dave Page">
<meta name="keyword" content="PostgreSQL, database, dbms, postgres, 
postgres95, pgsql, relational, SQL, ODBC, JDBC">
<link rel="stylesheet" href="postgresql.css" type="text/css">
</head>

<body>

<a name="TOP"></a>
<p> </p>

<center>

***********

That clearly has a line that says:

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

Any idea why that's not working for you?  On the PC here with Mozilla 
1.3b on Win2K it's working fine.  It's also working ok for IE 5.5 SP2.

No problems with tweaking this to work, it just a matter of figuring out 
what's best.

:-)

Regards and best wishes,

Justin Clift


Dave Page wrote:
> It's rumoured that Dennis Björklund once said:
> 
>>There is no declaration of charset in the main webpage. Something like
>>
>><meta content="text/html; charset=iso-8859-1"
>>http-equiv="Content-Type">
>>
>>would be nice. What is worse is that there are several charsets used.
>>In the International part I have to set mozilla to use utf-8 for it to
>>be rendered correctly and in the Event part I have to tell mozilla to
>>use iso-8859-1. There is not one setting that can show the whole page.
>>
>>There really should be only one charset on the page, and it should be
>>specified so that the browser can show it right and not have to guess.
> 
> 
> There was. Justin, did you say you tweaked the charset the other day? I
> don't have my email archives to hand...
> Regards, Dave.
> 
> 


-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi



Re: website charset

From
Dennis Björklund
Date:
On Sun, 9 Mar 2003, Justin Clift wrote:

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

Ops, how could I miss it.

> Any idea why that's not working for you?  On the PC here with Mozilla 
> 1.3b on Win2K it's working fine.  It's also working ok for IE 5.5 SP2.

I use 1.3b in linux.

The problem is still that there are characters I can't see unless I switch 
to latin1.

In the sentence (from the Event column on the page)

Devrim Gündüz will present another PostgreSQL seminar in Erciyes
University, Kayseri, Turkey.

I can not see the name correct unless I change to latin1. It can still be
a problem with the browser, but I just assumed that it used latin1 and the
rest was utf-8.

-- 
/Dennis



Re: website charset

From
Justin Clift
Date:
Dennis Björklund wrote:
> On Sun, 9 Mar 2003, Justin Clift wrote:
<snip>
> The problem is still that there are characters I can't see unless I switch 
> to latin1.
> 
> In the sentence (from the Event column on the page)
> 
> Devrim Gündüz will present another PostgreSQL seminar in Erciyes
> University, Kayseri, Turkey.
> 
> I can not see the name correct unless I change to latin1. It can still be
> a problem with the browser, but I just assumed that it used latin1 and the
> rest was utf-8.

Arrrgh.  That was converted to proper &html; style characters when the 
pages were changed to utf8.

Looks like the database restoration also restored the old version of the 
pages.

Will fix now.

:)

Regards and best wishes,

Justin Clift

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi



Re: website charset

From
Justin Clift
Date:
Justin Clift wrote:
> Dennis Björklund wrote:
> 
>> On Sun, 9 Mar 2003, Justin Clift wrote:
> 
> <snip>
> 
>> The problem is still that there are characters I can't see unless I 
>> switch to latin1.
>>
>> In the sentence (from the Event column on the page)
>>
>> Devrim Gündüz will present another PostgreSQL seminar in Erciyes
>> University, Kayseri, Turkey.
>>
>> I can not see the name correct unless I change to latin1. It can still be
>> a problem with the browser, but I just assumed that it used latin1 and 
>> the rest was utf-8.

Ok, this should be fixed now.  Thanks for pointing it out, and sorry for 
the hassle.

:)

Regards and best wishes,

Justin Clift

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi



Re: website charset

From
"Dave Page"
Date:
It's rumoured that Dennis Björklund once said:
> In the sentence (from the Event column on the page)
>
> Devrim Gündüz will present another PostgreSQL seminar in Erciyes
> University, Kayseri, Turkey.
>
> I can not see the name correct unless I change to latin1. It can still
> be a problem with the browser, but I just assumed that it used latin1
> and the rest was utf-8.

Yes, I'm seeing problems with Devrim's name as well on IE6/XP Pro. :-(

Charsets/locales etc are not exactly an area I work in a lot so I'll have
to leave this one to you Justin... (if you don't mind of course :-) ).
Regards, Dave.