Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] OT-Japanese in PHP



On 5/20/05, Mark Sargent <powderkeg@example.com> wrote:
> I've set this at the top of my pages,
> <html lang="Shift_JIS">
> and this for the font
> <font type=\"Shift_JIS\">$product_data_output</font>

Concerning your html code, the "correct" way to do this is something like this

-----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=Shift-JIS" />
    <title>何でもいい</title>
</head>
<body lang="ja">
-----------------

The most important is the META tag to tell what charset you use, and
after that the language attributa for the BODY tag (this will
hopefully in the near future tell "clever" browsers to use the
japanese glyph of a character and not the chinese one when we use the
utf-8 charset)

Evan

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links