473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Enforcing Charset to UTF-32 in HTML using meta tags

I have the following in the XHTML 1.0 Strict page:
<meta http-equiv="Content-Type" content="text/html;charset=utf-32" />

However W3 validator complains that
"The character encoding specified in the HTTP header (utf-8) is
different from the value in the <metaelement (utf-32). I will use
the value from the HTTP header (utf-8) for this validation."

How can I change the encoding in the header? I don't have access to
change the HTTP server configuration.

Problem URL:
http://www.quantumcrypto.de/dante/

W3 Validator Output:
http://validator.w3.org/check?uri=ht....de%2Fdante%2F

Nov 25 '07 #1
6 6401
Scripsit do*********@gmail.com:
I have the following in the XHTML 1.0 Strict page:
<meta http-equiv="Content-Type" content="text/html;charset=utf-32" />
Why are you using XHTML, and why are you using utf-32? That's pointless
game on the Web these days: you have nothing to win and almost
everything to lose. Have you any reason to believe that browsers support
utf-32? And IE surely doesn't support XHTML, unless you fake it as
old-style HTML.
However W3 validator complains that
"The character encoding specified in the HTTP header (utf-8) is
different from the value in the <metaelement (utf-32). I will use
the value from the HTTP header (utf-8) for this validation."
That's correct.
How can I change the encoding in the header?
This depends on the server.
I don't have access to
change the HTTP server configuration.
Then you don't. But this does not matter, since you shouldn't anyway.
Problem URL:
http://www.quantumcrypto.de/dante/
A quick look suggests that it only uses ASCII characters, so what would
be the point of using utf-32? It would just multiply the size of the
file by 4 and would make browsers and search engines fail to process it.

If you really want to prepare for the inclusion of non-ASCII characters
directly as data, just use utf-8, if you know how to do that.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Nov 25 '07 #2
On Sun, 25 Nov 2007, do*********@gmail.com wrote:
<meta http-equiv="Content-Type" content="text/html;charset=utf-32" />
If this line is encoded in US-ASCII, it can no longer be UTF-32.
If this line is encoded in UTF-32, you must know this encoding
*in advance* to be able to read the line.

Either way, this <meta http-equivis nonsense. See also
http://www.unics.uni-hannover.de/nht...a-http-equiv.1
http://www.unics.uni-hannover.de/nht...a-http-equiv.2

Perhaps you want UTF-32 to exclude your pages from Google.
There are better ways to do this. (Google still cannot read
UTF-16 and UTF-32.)

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Nov 26 '07 #3
On Mon, 26 Nov 2007, dk_sz wrote:
>(Google still cannot read UTF-16 and UTF-32.)

Where do you have that information from?
http://www.google.com/search?q=U.T.F.1-6

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Nov 26 '07 #4
Scripsit dk_sz:
>There are better ways to do this. (Google still cannot read
UTF-16 and UTF-32.)

Where do you have that information from?
Would you believe that Andreas has actually done some tests?
It is quite simple to convert from e.g. UTF-16 to UTF-8.
For some values of "simple", but that does not force anyone to do such
conversions.
However, it is annoying when people specify
different things in meta, BOM and server :-)
I'd say it's just sloppyness. I've seen it happen rather often, and you
specify the actual encoding in the HTTP headers, the odds are that
you'll never notice that you meta tag is in violation of that.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Nov 26 '07 #5
Thank y'all. For now I have switched from UTF 32 to UTF-8

saqib
http://www.quantumcrypto.de/dante/
Nov 28 '07 #6
On Mon, 26 Nov 2007, I wrote:
>>(Google still cannot read UTF-16 and UTF-32.)

Where do you have that information from?

http://www.google.com/search?q=U.T.F.1-6
I noticed that the number of pages found with this search
gets smaller. It seems that Google catches on with UTF-16.

This cached page
http://google.com/search?q=cache:www...e1-utf-16.html
looks OK now.

--
Bugs in Internet Explorer 7
http://www.unics.uni-hannover.de/nhtcapri/ie7-bugs
Nov 30 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Lakshmi Narayanan | last post by:
Hi experts, My problem is, for password <input name="password" type="password"> element the size given is 20. For another one <input name="username"> is also 20. But in browser the size differs...
0
by: Wouter | last post by:
Hi, I use Windows XP, Apache2 and MySQL 4.1. I changed my default charset by adding in my php.ini: default-character-set=utf8 Some row inserts now went wrong, so I did remove it again....
34
by: nose | last post by:
Hi, A little poll for the week-end: Which charset do you use for your website(s): utf-8? iso-8859-1 (...)? other? just don't care? What charset is better now, say, for European languages like...
1
by: Simon_E | last post by:
We are experiencing problems with calling a Web Service that runs on Oracle HTTP Server powered by Apache. The Web Service returns 400 Bad Request. The explanation I got from the developer of...
0
by: Joachim | last post by:
Environment: Windows XP - german settings. MySQL: 5.0.18-nt Database charsets have been changed from 'latin1' (where 'LOAD DATA' worked fine) to utf-8 to resolve some charset issues with...
14
by: bugmagnet | last post by:
I am writing a simple email program in Python that will send out emails containing Chinese characters in the message subject and body. I am not having any trouble getting the email body displayed...
1
by: Marc Scheuner | last post by:
Folks, we're trying to stream back a result set from a SQL query into Excel from our ASP.NET application. Basically, we're doing this here: Response.ContentType = "text/csv";...
0
tjc0ol
by: tjc0ol | last post by:
Basically for xhtml 1.0 strict is charset="utf-8" but in my case the w3c validator although my website passed in validation but has error regarding this error: "Byte-Order Mark found in UTF-8...
3
by: Gandalf | last post by:
now I understand my problem better so their is a good chance you manage to help me. I have a SQlite database full with ANSI Hebrew text , and program that uses WXpython Now, I use a-...
2
by: optimistx | last post by:
I try to develope a bookmarklet in javascript. The charset of the bookmarklet is UTF-8, but it is supposed to work within pages, whose character set is not UTF-8, but e.g. ISO-8859-1 or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.