From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: The text coding sytem for Emacs
Date: Fri, 06 Nov 2009 10:19:48 +0200 [thread overview]
Message-ID: <83aaz0awuz.fsf@gnu.org> (raw)
In-Reply-To: <833a4ttdik.fsf@ymail.invalid>
> From: Water Lin <WaterLin@ymail.invalid>
> Date: Thu, 05 Nov 2009 19:30:27 +0800
>
>
> I re-install my Windows XP system. But after I start Emacs, it treats my
> text file as iso-latin-1-unix. But actually the coding system should be
> utf-8. So Emacs shows the text as a mess.
What version of Emacs is that? With Emacs 23.1 I think this shouldn't
happen (barring some rare bug). If you don't have Emacs 23.1, can you
upgrade?
> How can I let Emacs to treat text file as UTF-8 by default?
For this file only, or for all files?
For the latter `(prefer-coding-system 'utf-8)' in your .emacs should
do, I think. For the former, you can add a `coding:' cookie to the
file.
next prev parent reply other threads:[~2009-11-06 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 11:30 The text coding sytem for Emacs Water Lin
2009-11-06 8:19 ` Eli Zaretskii [this message]
[not found] ` <mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org>
2009-11-11 2:36 ` Water Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83aaz0awuz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).