Forum Moderators: open

Message Too Old, No Replies

Character encodings

Which one to choose for Dutch sites?

         

Ambiorix

9:09 am on Nov 21, 2002 (gmt 0)

10+ Year Member



Hi all,

All my pages source code are starting with:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=en xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

Now, my sites are in dutch. Do I have to change the "en" in "nl" in the code above?

I was running the page through the W3C HTML validator and I received tons of errors starting with the above code.

BlobFisk

11:43 am on Nov 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ambiorix,

Excuse my ignorance, but does Dutch have any accented letters or does it use the standard English alphabet?

If it uses the standard English character set then you should be ok...

Ambiorix

12:01 pm on Nov 21, 2002 (gmt 0)

10+ Year Member



Hi all,

I just figured it out:
Changed both lines into:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

and it was W3C HTML compliant.

and indeed, the character coding of "en" and "nl" is the same so problem solved :-)

g1smd

8:53 pm on Nov 21, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yeah, you just needed a doctype that identified your code as HTML 4.01 not as having some XML content as well.

You also need to identify the character set you are going to be using. For Western Europe this is usually either ISO 8859-1 or UTF-8:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> OR
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

If you also want to tell search engines and online translation tools that the content of your site is in the Dutch language, then you'll also need to add this code into the header:
<meta http-equiv="Content-Language" content="NL">
The codes come from the ISO 639 [laurentia.com] standard [oasis-open.org].