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

Re: LT: Great news!



David Starner wrote:
> 
> On Mon, Oct 22, 2001 at 12:15:23PM -0400, D. Dale Gulledge wrote:
> > I've been using Emacs 21 for the past couple of pre-releases and I have
> > recently converted a substantial amount of my work from Latin-3 to
> > UTF-8.
> 
> How does it work? I'm apparently naive in expecting that opening up a
> UTF-8 file in a UTF-8 locale would get emacs to display it as a UTF-8
> file.

Since I'm not using a UTF-8 locale, I can't say for sure.  I have to
tell Emacs which files are UTF-8 encoded.  There are three ways that I
know of to do that:

1) Explicitly select an encoding as you visit the file:

	C-x RET c utf-8 RET C-x C-f

2) Set the file-coding-system-alist:

	(modify-coding-system-alist 'file "\\.pot?" 'latin-3-unix)
	(modify-coding-system-alist 'file "\\.utf" 'utf-8-unix)

3) Set the mode on the first line of the file.  This works for files you
create:

	-*- mode: text; coding: utf-8; -*-

-- 
D. Dale Gulledge, Sr. Programmer,
dsplat@xxxxxxxxxxxxxxxx
C, C++, Perl, Unix (AIX, Linux), Oracle, Java,
Internationalization (i18n), Awk.
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/