From: Water Lin <WaterLin@ymail.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: The text coding sytem for Emacs
Date: Wed, 11 Nov 2009 10:36:21 +0800 [thread overview]
Message-ID: <837htx7pp6.fsf@ymail.invalid> (raw)
In-Reply-To: mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org
Eli Zaretskii <eliz@gnu.org> writes:
>> 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.
>
>
Yes, I am using Emacs 23.1. I fix this problem by adding
(prefer-coding-system 'utf-8)
to my .emacs file.
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
prev parent reply other threads:[~2009-11-11 2:36 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
[not found] ` <mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org>
2009-11-11 2:36 ` Water Lin [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=837htx7pp6.fsf@ymail.invalid \
--to=waterlin@ymail.invalid \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.