help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to make emacs auto-recognize utf-8 encoded files upon visiting


From: Charles Muller
Subject: Re: How to make emacs auto-recognize utf-8 encoded files upon visiting
Date: Wed, 25 Sep 2002 18:21:23 +0900 (JST)

After Eli wrote ...
 
> Yes.  Don't you see that when you visit etc/HELLO?

I spend quite a bit of time trying to visit utf-8 files on my hard drives in
Emacs 21.2 without the TEI package loaded, and could not view Chinese fonts
in any of them, which is odd, in view of the fact that I can see them in the
HELLO file. Then I tried C-u C-x = on some of the characters in HELLO, and
got this interesting piece of information (for example):


  file code: ESC 24 28 43 31 5B
             (encoded by coding system iso-2022-7bit-unix)

Unless I am completely misunderstanding something (and I may well be, for I
am not a programmer) if this file is encoded as iso-2022-7, it seems that we 
should not be using
it as a test  example of utf-8 functionality. Am I right? I have written up
a small test file in utf-8 that contains just one line each of Korean, Japanese,
and Chinese, in case any one is interested in trying it. It displays for me
fine with TEI installed, but as gibberish without it.

http://www.acmuller.net/test.txt

Chuck

---------------------------
Charles Muller  <acmuller@gol.com>
Faculty of Humanities,  Toyo Gakuen University
Digital Dictionary of Buddhism and CJKV-English Dictionary 
[http://www.acmuller.net]
Mobile Phone: 090-9310-1787




reply via email to

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