Hi,
Recently, I've tried to publish some UTF-8 encoded XHTML documents (containing
text in Devanagari script) on web (not my web server). These webserver, follow
HTTP/1.1 specification, and according to that specification, ISO-8859-1 is the
default content encoding, until unless document explicitly specifies some
specific content encoding to the webserver, so that it emit proper
"Content-Type" HTTP header when any request for that document in encountered.
Since, I don't have privilege to execute anything on server, I'm unable to set
the appropriate HTTP header. So, I added a <meta> tag in my document, and its
header now looks like.
-- begin dump --
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>
<title>My document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-- end dump --
But, browser also ignores the "Content-Type" specified in the document, and
uses
"Content-Type" of HTTP response. The document's validation (using XHTML
validator @ W3C.org) gets halted when it encounters UTF-8 characters (of
Devanagari, which are not part of ISO-8859-1 encoding). Currently I've
entitified the Devanagari characters, but any other suggestions ??
Is this the correct list for this kind of discussion ? Sorry, if I posted to
wrong list.
Thanks in advance,
Ashish Shukla "Wah Java !!"
--
आशीष शुक्ला alias "Wah Java !!"
http://wahjava.blogspot.com/
The only key to optimal life is precision.
-- Ashish Shukla "Wah Java !!"
http://wahjava.blogspot.com/2006/03/useful-thought.html
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/