Article View: fj.editor.xemacs
Article #95open-network-stream使用時の文字コードについて
From: IMAI Hidetoshi
Date: Thu, 18 Oct 2001 05:54
Date: Thu, 18 Oct 2001 05:54
58 lines
2919 bytes
2919 bytes
~~~xemacs~~~~~~~~~~~~~~~~~ ~~~~~ emacs-lisp~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~: FreeBSD 4.3-RELEASE xemacs-21.1.14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ open-network-stream~~~~web~~~~~~~log~~~~~~~ ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~log~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~log~~~~~sjis~~~ ~ ------------------------------------------------------------ ~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------------ set-process-coding-system ~ sjis euc-japan shift_jis-dos automatic-conversion ~~~~~~ ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ ~~~shell-command-to-string~~~~nkf -e~~~~~~~~~ ~~~~~~~~~~~~~~~~emacs-lisp~~~~~~~~~~ ~~~~~ ------------------------------------------------------------ (defun nybc-get-log-file () "~~~~~~~~~~~~" (save-excursion (let (proc) (message "now connecting...") (open-network-stream nybc-view-net-process nybc-view-net-buffer nybc-view-net-url 80) (set-buffer nybc-view-net-buffer) (erase-buffer) (setq proc (get-buffer-process (current-buffer))) (set-process-coding-system proc 'shift_jis-dos 'shift_jis-dos) ; (set-process-coding-system proc 'automatic-conversion 'automatic-conversion) (process-send-string proc (format "%s" (concat "GET /hogehoge/keijiban.log HTTP/1.1\n" "Host: " nybc-view-net-url "\n" "Connection: close\n" "\n"))) (while (and (eq (process-status proc) 'open) (goto-char (point-min)) (not (re-search-forward "^Process" nil t))) (accept-process-output proc)) (message "now connecting...connected")))) ------------------------------------------------------------
Technical Details
Message-ID:
<xl9g08hsdaq.wl@cal.infonets.hiroshima-u.ac.jp>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!news.join.ad.jp!news-sv.sinet!east-news.csi.ad.jp!hiroshima-u!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1107f7,e1d71c6971fdc530,start X-Google-Attributes: gid1107f7,public X-Google-ArrivalTime: 2001-10-17 22:56:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!news.join.ad.jp!news-sv.sinet!east-news.csi.ad.jp!hiroshima-u!not-for-mail From: IMAI Hidetoshi <hidepin@infonets.hiroshima-u.ac.jp> Newsgroups: fj.editor.xemacs Subject: open-network-stream使用時の文字コードについて Date: Thu, 18 Oct 2001 14:54:53 +0900 Organization: Hiroshima University Lines: 59 Message-ID: <xl9g08hsdaq.wl@cal.infonets.hiroshima-u.ac.jp> NNTP-Posting-Host: cal.infonets.hiroshima-u.ac.jp Mime-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=X-UNKNOWN Content-Transfer-Encoding: quoted-printable X-Trace: news.hiroshima-u.ac.jp 1003384494 9606 133.41.33.61 (18 Oct 2001 05:54:54 GMT) X-Complaints-To: news-admin@hiroshima-u.ac.jp NNTP-Posting-Date: 18 Oct 2001 05:54:54 GMT User-Agent: Wanderlust/2.4.1 (Stand By Me) XEmacs/21.1 (Cuyahoga Valley)