Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > HTML and XHTML
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jul 13, 2006, 02:22   #1
glantucan
SitePoint Member
 
Join Date: Jul 2006
Posts: 3
Unhappy I'm lost:Setting correct encoding doesn't work

Hello all

I'm new here so thanks for any help you could provide

I'm using this on http://www.etsii.upm.es/ingor/organi...sim/index.html :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--  Template templates_cabecera.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="Description" content="Descripción de la página" />
	<meta name="Keywords" content="palabras,clave,separadas,por,comas" />
	<meta name="Author" content="Glantucan" />
	<meta name="Copyright" content="&copy; 30/05/2006 glantucan.com" />
	<title>I Congreso de Ingeniería de la Organización</title>
	<style type="text/css">@import "my.css";</style>
	<!--[if IE]>
		<link href="my_ie.css" rel="stylesheet" type="text/css" media="screen" />
	<![endif]-->
	<link rel="icon" href="tdn.png" type="image/png" />
</head>
But browsers don't render correctly spanish characters.

Any idea?

Please, Help!

Glantucan
glantucan is offline   Reply With Quote
Old Jul 13, 2006, 05:27   #2
glantucan
SitePoint Member
 
Join Date: Jul 2006
Posts: 3
Correction to previous post

Hi again

I found out that there were some mistakes in my understanding of how to set doctype and language and encoding. i believe the following is more correct, but still not working:
HTML Code:
<!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" lang="es" xml:lang="es">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="Description" content="Descripción de la página" />
	<meta name="Keywords" content="palabras,clave,separadas,por,comas" />
	<meta name="Author" content="Glantucan" />
	<meta name="Copyright" content="&copy; 30/05/2006 glantucan.com" />
	<title>I Congreso de Ingeniería de la Organización</title>
	<style type="text/css">@import "my.css";</style>
	<!--[if IE]>
		<link href="my_ie.css" rel="stylesheet" type="text/css" media="screen" />
	<![endif]-->
	<link rel="icon" href="tdn.png" type="image/png" />
</head>
glantucan is offline   Reply With Quote
Old Jul 13, 2006, 06:00   #3
zcorpan
bronze trophy
 
Join Date: Dec 2004
Location: Sweden
Posts: 2,462
Welcome to the forums.

You need to configure the server.
zcorpan is offline   Reply With Quote
Old Jul 14, 2006, 03:14   #4
glantucan
SitePoint Member
 
Join Date: Jul 2006
Posts: 3
Quote:
Originally Posted by zcorpan
Welcome to the forums.

You need to configure the server.
Thanks a lot. I finally managed to convince the server administrators to allow utf-8 for this webpage. :-D

They argued that they don't use to allow it because some bad hackers would be able to exploit it to gain access to the server. Do any of you know what are they talking about?

Thanks again

Glantucan
glantucan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 16:59.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved