Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2008 15:40:17 -0500
From:      Jeffrey Goldberg <jeffrey@goldmark.org>
To:        faja606@aol.com
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Complex text layout
Message-ID:  <4CEC06F3-4700-4774-B56E-F8104AA1442C@goldmark.org>
In-Reply-To: <8CAD8977E70BB7D-1770-2988@webmail-me08.sysops.aol.com>
References:  <8CAD8977E70BB7D-1770-2988@webmail-me08.sysops.aol.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 30, 2008, at 4:11 AM, faja606@aol.com wrote:

> I am trying to get my website to support multilanguage fonts,  
> complex text layouts. An example of what I am trying is to have the  
> fonts of other languages appear rather than boxes or question marks.

This is purely an HTML/web-design question, and has nothing really to  
do with FreeBSD even if your webserver is a FreeBSD system.  You  
should look at the LANG and DIR attributes.  Also, you should set up  
your pages do use UTF-8 as a character set.  To instruct your server  
to declare that documents are UTF-8 by default, you can set

   AddDefaultCharset utf-8

in your Apache configuration.

AddDefaultCharset is document at

   http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset

If you don't have access to the Apache configuration, you can declare  
the charset to use within each document in the HTML, with something like

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

within the HEAD portion of the document.

The LANG and DIR attributes are documented at

   http://htmlhelp.com/reference/html40/attrs.html#lang

though that is more of a reference document than a "how to".


Cheers,

-j


-- 
Jeffrey Goldberg                        http://www.goldmark.org/jeff/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CEC06F3-4700-4774-B56E-F8104AA1442C>