Go to the first, previous, next, last section, table of contents.

Kanji Handling In SX/A Emacs

If the kanji code of articles stored in the NNTP server is not EUC, it must be converted to EUC in an Emacs buffer after being read into the buffer. The kanji code of articles being posted must be also converted to the server specific kanji code in an Emacs buffer before actually being sent to the server. The following examples show how to do these using hooks:

(setq gnus-Article-prepare-hook
      '(lambda ()
         (call-process-region (point-min) (point-max)
                              "nkf" t t nil "-e" ;-e stands for EUC.
                              )))
(setq gnus-Inews-article-hook
      '(lambda ()
         (call-process-region (point-min) (point-max)
                              "nkf" t t nil "-j" ;-j stands for JIS.
                              )))

In this example, `nkf' (Network Kanji Filter) is used as a kanji code converter, and the kanji code of the NNTP server is JIS.


Go to the first, previous, next, last section, table of contents.