473,669 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=ut f-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 6452
Scripsit do*********@gma il.com:
I have the following in the XHTML 1.0 Strict page:
<meta http-equiv="Content-Type" content="text/html;charset=ut f-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*********@gma il.com wrote:
<meta http-equiv="Content-Type" content="text/html;charset=ut f-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
4068
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 for Charset="UTF-8" only. How to make equal in display? the sample is here: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
0
1772
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. How can I remove a default charset from a table?
34
2771
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 french, german, spanish...
1
2912
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 the Web Service is that Apache doesn't accept messages that contains the information "charset=utf-8" in the Content-Type field in the HTTP Header. How can I remove the charset=utf-8 from the Content-Type field?
0
4020
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 Perl/Tk. When loading a csv-file to the data base in the new utf-8 environment and an 'Umlaut' appears within a field the rest of the field including the 'Umlaut' gets truncated. Because the csv-file was created under Windows I used the 'SET
14
2283
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 correctly in Chinese inside the email client, however the email subject and sender name (which are also in Chinese) are garbled and are not displayed correctly in the email client. Here is the code snippet: writer = MimeWriter.MimeWriter(out)
1
2048
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"; Response.Charset = "utf-8";
0
1065
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 File. The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported. " What is the best way to remove that...
3
1362
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- 'wx.TextCtrl' item to receive input from the user, and when I try to search the database he don't understand this chars. it's quite reasonable consider the fact the program set to work on UTF-8 charset, except for:
2
5893
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 WINDOWS-1252. The bookmarklet loads other javascript files with the attribute charset="UTF-8". Mostly everything works nicely, but at least alert-boxes seem to show different characters depending on the browser (Firefox 3 , Opera 9.02, ie6 has been...
0
8383
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8895
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8809
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4386
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2797
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.