Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- LÄÊ»ie Techie
December 4, 2003, 6:13 am
rate this thread
Please do not cross-post in non-related groups. Your sample clearly shows
this is in a web page, so you can cut out the comp.lang.java hierchy.
On Fri, 13 Jun 2003 00:15:24 +0100, Kyo wrote:
How many languages will be displayed on the page?
If _everything_ is in the same language, simply declare the language in
your DOCTYPE tag (as well as the Content-language meta tag), use proper
unicode values for the characters, and let the browser do the rest.
If your page is all in Chinese, only those with fonts that support Chinese
will frequent it.
If your page has mixed languages, mark your document as UTF-8. Use <div>
and <span> to indicate what is in which language. You may wish to use CSS
to specify a list of possible fonts for each language. Finally, embedded
fonts are a possibility. I've never created one and users can disable
them, so your mileage may vary.
As a last resort, you can create images of the Chinese characters. The
downside is that spiders (such as google) will not understand the meaning
(unless you include the alt attribute). Also, text generally loads faster
- Bertilo Wennergren
December 4, 2003, 10:45 am
Re: how to create web page using different foriegn fonts?
It's not enough to just mark the document as UTF-8. You also have to
actually use UTF-8 in the document. That could of course mean
restricting the code to ASCII (a subset of UTF-8), using character
references (or entities) for everything else. (And remember ASCII is not
the same as Latin 1.)
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum