Re: Japanese line wrap patch for UTF-8 terminal
KIHARA Hideto <[email protected]>
| Newsgroups | gmane.comp.web.lynx.devel |
|---|---|
| Message-ID | <[email protected]> |
> > Does "document_charset" come from charset defined within <head> of web
> > page, e.g., <meta charset="UTF-8">?
document_charset comes from
1. HTTP header: Content-Type: text/html; charset=UTF-8
if header does not contain charset,
2. HTML: <meta charset="UTF-8">
or <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
if charset is not defined in HTML,
3. BOM (Byte Order Mark) for local file or cache
4. lynx -assume_local_charset= for local file
5. lynx.cfg ASSUME_LOCAL_CHARSET for local file
6. 'Assumed document character set' in Options Menu
7. lynx -assume_charset=
8. lynx.cfg ASSUME_CHARSET
9. auto detect EUC-JP, Shift_JIS (no UTF-8 support)
by USE_TH_JP_AUTO_DETECT (userdefs.h)
on display_charset=EUC-JP or Shift_JIS
* on display_charset=UTF-8 and HTTP: 1,2, 6,7,8
* on display_charset=UTF-8 and local file: 2, 3,4,5, 6,7,8
* on display_charset=EUC-JP or Shift_JIS and HTTP: 1,2, 9
* on display_charset=EUC-JP or Shift_JIS and local file: 2, 3, 9