Reply to Re: Write Chinese in Wordpad

Your name:

Reply:


Posted by Jukka K. Korpela on 09/25/05 08:34

"Luigi Donatello Asero" <jaggillarfotboll@telia.com> wrote:

> Did I do something wrong?

Yes. You pointlessly crossposted, to begin with. Followups now trimmed.

Moreover, you failed to provide a URL of your attempt. You just have to
believe that I know it is needed for an analysis what you tried and why it
failed. I'm not going to give a lecture on character encoding on the Web
(you can have a free lecture on that by reading the HTML specification,
though it's a bit dusty, dry, and even a little misleading).

> <html lang="cn">

You are using an inccorrect language code: "cn" is currently unassigned,
hence an error. The language code for Chinese is "zh" (whereas "CN" is the
country code for China). Don't use language codes before you understand
them. They are not needed for any basic functionality, but using _wrong_
codes can cause problems.

(When you understand the codes, you probably wish to use either "zh-Hans"
or "zh-Hant" for your pages or elements in Chinese, instead of the generic
"zh".)

> <meta http-equiv="Content-Type"
> content="text/html;charset=utf-8" />

Why do you use XML syntax in a document that you declare as HTML 4.01?
Did you actually _utilize_ the DOCTYPE by trying to validate the page?

> <META NAME="REVISIT-AFTER" CONTENT="1 DAY">

Pointless, if not harmful. No indexing robot is going to visit your page
every day just because you use such a meta tag.

> <META NAME="DESCRIPTION" CONTENT="Lägenheten för fritidsändamål i
> Rom">

Rather pointless too, and potentially harmful if the page mainly contains
Chinese. Google &Co. guess the language from the content, and initial
content (even in meta tags) _might_ matter more than the rest. If search
engines actually use the description in their hit lists, as they sometimes
do, the description won't be very adequate - it looks like an advertisement
more than a description of a page.

> The pages display also Chinese character but when I open the file they
> change into unreadable ones.

Huh? This sounds like you tried to open a document containing Chinese
characters in a program that cannot use a font that has such characters.
Of course, it could be any other mess as well.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация