Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > NZ Computing > Re: html - font problem

Reply
Thread Tools

Re: html - font problem

 
 
Lawrence D'Oliveiro
Guest
Posts: n/a
 
      01-12-2011
In message <igjkck$iev$(E-Mail Removed)>, Richard wrote:

> You are sending the page with the wrong encoding


That <meta...> tag for setting the encoding looks wrong. It should be
something like “<META HTTP-EQUIV="charset" CONTENT="utf-8">”.

Of course, writing the character as “&eacute;” should also solve the
problem.
 
Reply With Quote
 
 
 
 
Lawrence D'Oliveiro
Guest
Posts: n/a
 
      01-12-2011
In message <(E-Mail Removed)>, Reg wrote:

> Somehow I have fixed it by copying the original source code from the
> sitepoint page again and putting it into a new file.


My guess is, the way you originally copied the text, the UTF-8-encoded e-
acute somehow got converted into some other encoding (most likely
Windows-1252, from my impressions of how Windows works—or doesn’t). So if
you tried serving it up as UTF-8, no wonder it looked wrong.
 
Reply With Quote
 
 
 
 
Ralph Fox
Guest
Posts: n/a
 
      01-12-2011
On Wed, 12 Jan 2011 21:00:51 +1300, in message <igjn3j$m5h$(E-Mail Removed)>
Lawrence D'Oliveiro wrote:

> In message <igjkck$iev$(E-Mail Removed)>, Richard wrote:
>
> > You are sending the page with the wrong encoding

>
> That <meta...> tag for setting the encoding looks wrong. It should be
> something like <META HTTP-EQUIV="charset" CONTENT="utf-8">.



I think you mean

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

Even so, if the web server were also sending a (different) charset in the
HTTP response headers, then the web server's charset would override this
meta tag. See http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2


> Of course, writing the character as &eacute; should also solve the
> problem.



--
Regards
Ralph
 
Reply With Quote
 
Lawrence D'Oliveiro
Guest
Posts: n/a
 
      01-12-2011
In message <(E-Mail Removed)>, Ralph Fox wrote:

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


Sorry, yeah. But without the “/” at the end.
 
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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1> Stphane Klein Python 2 03-30-2010 12:35 AM
Re: I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1> Stefan Behnel Python 0 03-29-2010 08:14 PM
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
How to get the text in html tag.like<div...><font...>Text</font></ =?Utf-8?B?Tmlja3k=?= ASP .Net 2 02-20-2005 03:03 PM
Font class, external font files question Karl Hungus ASP .Net 1 02-04-2004 04:26 PM



Advertisments