Hello Ted,
Bear in mind that language declarations are totally separate from character
encodings. For example, French can be encoded in several different ways,
and utf-8 can represent many different languages.
Language information is used for things like spellchecking, styling, speech
synthesis, etc. Character encoding indicates what characters should be
interpreted from the bytes in the code.
Note also that there can only be a single encoding for a page.
Hope that helps,
RI
Richard Ishida
W3C
contact info:
http://www.w3.org/People/Ishida/
W3C Internationalization:
http://www.w3.org/International/
Publication blog:
http://people.w3.org/rishida/blog/
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ted Drake
Sent: 22 November 2004 22:00
To: [EMAIL PROTECTED]
Subject: [WSG] turkish text - can you assign a language or
encoding to a div?
If you are doing a web site and you only have sporadic use of
turkish characters, can't you wrap that text in a div and
assign it a language? I haven't done this before so I'm
asking not suggesting. But I thought that I have seen that as
a semantic way to show that there will be languages other
than the native on a page. Now, is there also a way to
designate the character encoding on a div or span?
Ted
Lang attributes:
Fixed.
UTF-8 instead of ISO:
Here's the validator's message:
Sorry, I am unable to validate this document because on
lines 7-9, 11, 79, 84, 86-87, 89-92, 101, 104-107, 114 it
contained one or more bytes that I cannot interpret as utf-8
(in other words,
the bytes found are not valid values in the specified
Character Encoding). Please check both the content of the
file and the character encoding indication.
It doesn't like the Turkish characters. I simply won't write
any UTF-8 codes while writing an article to my web site. If
it doesn't validate my web page some day some how because of
Turkish characters, I won't mind if my pages render correct.
If my pages don't render correct with the Turkish characters
in the code, I will use Flash. ;)
Because English speaking people can simply write for the web
by hitting one character they know.
Why shoulf non-English speaking people like me bother
character entities etc? Also, I know I can use findreplace
on multi files at the same time, but I won't do that. Then I
will have to backup two copies of each page (eg. if I want to
use my text elsewhere, what will I do then? Reconvert to the
original?).
- Why?
- Because W3C said so.
Thank you for your comment.
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list getting help
**
**
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list getting help
**