Forum Moderators: open

Message Too Old, No Replies

Language meta tags

getting in the practice of setting the proper page encoding

         

bill

11:40 am on Sep 26, 2001 (gmt 0)

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



I know a lot of people don't pay much attention to these tags when designing their pages...but they're pretty important for people who flip between character sets frequently when surfing. I've seen a few threads that dealt with this in passing, but wanted to see if some of the more learned members here could enlighten me further.

Here are the main language meta tags I've seen:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-US">
<meta name="language" content="en">

and
<html lang="en"> I know this isn't a meta tag, but I thought I'd throw it in.

I know that setting the charset is pretty standard, but I'm not completely sure how important the other tags are. I seem to recall that some of them used to be recommended for Netscape browsers for setting the page encoding automatically.

The reason I'm bringing this up is that I do a lot of surfing between Japanese and English sites. Japanese sites are notorious for not using any meta tags, so I waste a lot of time setting page encoding manually. This can be really annoying. On the flip side, after surfing a Japanese encoded page and returning to an English site w/o any of these meta tags set, I can get garbled text. The problem usually shows up in punctuation, which become random Japanese characters.

My question is, which of these meta tags, if any, will help force browsers to select the proper encoding for the page.

Eric_Jarvis

12:34 pm on Sep 26, 2001 (gmt 0)

Mike_Mackin

12:52 pm on Sep 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



so if I'm trying to write a site in Spanish do I need anything different in the tags?

heini

1:41 pm on Sep 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>so if I'm trying to write a site in Spanish do I need anything different in the tags?
The
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
should do.
The <meta http-equiv="Content-Language" content="XXX">
is of no interest for browsers. This tag anyhow applies to SEs mainly. If a search is performed which is restricted to a language - not country which is set by tlds - the lang. tag might be useful. The big engines anyhow to my knowledge use automatic language recognition.
Bottomline then would be: canīt hurt to use a language tag :)

Eric_Jarvis

2:12 pm on Sep 26, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it is when you get to Japanese, Russian or Chinese where there are a choice of incompatible encodings that you need to have some idea what charset to declare

Rumbas

2:52 pm on Sep 26, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I agree that the engines mostly have some language recognition software that detects the language preferences. I always put in:

<meta http-equiv="Content-Language" content="DK">
<meta name="language" content="dk">

Don't know if the se's detect it or they use the tags, anyway they seem to show the right characters in SERPs