about summary refs log tree commit diff stats
path: root/doc/config.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-12 00:05:14 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-12 00:13:59 +0200
commitaf3c8348a096b80a22d9463c516a932689a4836c (patch)
treef340768cd666ed56e9fbf87e3a03b01e4e6d6d04 /doc/config.md
parentf150a706cfbe07ba0ebbfb6fdd904ff454ad7c60 (diff)
downloadchawan-af3c8348a096b80a22d9463c516a932689a4836c.tar.gz
Improve encoding support
* Use the output charset in lineedit (as w3m does)
* encoder: fix broken UTF-8 encoding, use openArray instead of var
  seq for input queue
* Add RuneStream as an in-memory interface to EncoderStream
* Document display-charset config option
Diffstat (limited to 'doc/config.md')
-rw-r--r--doc/config.md24
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/config.md b/doc/config.md
index 6662d1be..443d7003 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -111,21 +111,23 @@ Following is a list of encoding options:
 </tr>
 
 <tr>
-<td>fallback-charset</td>
+<td>document-charset</td>
 <td>string/array</td>
-<td>Default character set for loading documents.<br>
-For text
-documents, all listed character sets are enumerated until the document has been
-decoded without errors.</td>
+<td>List of character sets for loading documents.<br>
+All listed character sets are enumerated until the document has been decoded
+without errors. In HTML, meta tags and the BOM may override this with a
+different charset, so long as the specified charset can decode the document
+correctly.
+</td>
 </tr>
 
 <tr>
-<td>document-charset</td>
-<td>string/array</td>
-<td>List of forced character sets for loading documents.<br>
-All listed character sets are enumerated until the document has been decoded
-without errors.<br>
-Overrides fallback-charset.</td>
+<td>display-charset</td>
+<td>string</td>
+<td>Character set for keyboard input and displaying documents.<br>
+Used in dump mode as well.<br>
+(This means that e.g. `cha -I EUC-JP -O UTF-8 a > b` is equivalent to `iconv
+-f EUC-JP -t UTF-8.)</td>
 </tr>
 
 </table>