Forum Moderators: phranque

Message Too Old, No Replies

encoding in the head

         

surrealillusions

10:23 pm on Mar 12, 2008 (gmt 0)

10+ Year Member



<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-gb" />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Am i right in thinking that is wrong? The 2nd charset will overwrite the first one, so i need to get rid of the 2nd one as utf-8 is supposedly the correct one? Or am i completely wrong?

londrum

10:26 pm on Mar 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



they're both correct, you just have to choose which one you want.
iso-8859-1 is a subset of UTF-8. most people only need the characters in that, but there's no harm in sticking with UTF-8. you never know when you might need that extra exotic character.

surrealillusions

10:48 pm on Mar 12, 2008 (gmt 0)

10+ Year Member



ok..thanks

:)