lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal


From: KIHARA Hideto
Subject: Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal
Date: Fri, 1 Apr 2022 08:24:42 +0900
User-agent: Mutt/1.9.4 (2018-02-28)

> > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]