[Top][All Lists]

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

Can't make emacs use utf-8?? (on WinXP)

From: Bjoern
Subject: Can't make emacs use utf-8?? (on WinXP)
Date: Tue, 03 Jun 2003 01:55:33 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507


I've now installed emacs 21.3 and set the Mule language environment to UTF-8. So mule-utf-8 appears to be first in the priority order for recognizing coding systems when reading files, and also the default coding system for new files.

But I can't seem to convert my existing files. If I convert them to utf-8 (or mule-utf-8 ?) with C-x RET f utf-8 and save them, their encoding is still 'undecided-dos' when I reopen them. Except for one html File, where it works somehow (the others are .jsp and .java files, but I've also failed with another html file). When I create a text file just containing 'abc', it also works (recognised as utf-8 after reopening). However I tried writing a from scratch, and again it didn't work.

I'm really confused - how can undecided-dos happen at all, if utf-8 is first in the priority list?

Many thanks in advance for any help!


P.S.: Here is the output of M-x describe-current-coding:

Coding system for saving this buffer:
  - -- undecided-dos
Default coding system (for new files):
  u -- mule-utf-8-dos
Coding system for keyboard input:
Coding system for terminal output:
  1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
Defaults for subprocess I/O:
  decoding: u -- mule-utf-8-dos
  encoding: u -- mule-utf-8-dos

Priority order for recognizing coding systems when reading files:
  1. mule-utf-8 (alias: utf-8)
  2. iso-latin-1 (alias: iso-8859-1 latin-1)
  3. iso-2022-jp (alias: junet)
  4. iso-2022-7bit
  5. iso-2022-7bit-lock (alias: iso-2022-int-1)
  6. iso-2022-8bit-ss2
  7. emacs-mule
  8. raw-text
  9. japanese-shift-jis (alias: shift_jis sjis)
  10. chinese-big5 (alias: big5 cn-big5)
  11. no-conversion (alias: binary)

  Other coding systems cannot be distinguished automatically
  from these, and therefore cannot be recognized automatically
  with the present coding system priorities.

The followings are decoded correctly but recognized as iso-2022-7bit-lock:
    iso-2022-7bit-ss2 iso-2022-7bit-lock-ss2 iso-2022-cn iso-2022-cn-ext
    iso-2022-jp-2 iso-2022-kr

Particular coding systems specified for certain file names:

  ---------     --------------          ----------------
  File I/O      "\\.elc\\'"             (emacs-mule . emacs-mule)
                                        (raw-text . raw-text-unix)
                "\\.tar\\'"             (no-conversion . no-conversion)
                ""                      find-buffer-file-type-coding-system
  Process I/O   nothing specified
  Network I/O   nothing specified

reply via email to

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