* The text coding sytem for Emacs
@ 2009-11-05 11:30 Water Lin
2009-11-06 8:19 ` Eli Zaretskii
[not found] ` <mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: Water Lin @ 2009-11-05 11:30 UTC (permalink / raw)
To: help-gnu-emacs
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.
When I change the coding to UTF-8 by M-x
revert-buffer-with-coding-system, the text file works normally.
How can I let Emacs to treat text file as UTF-8 by default?
Thanks
Water Lin
--
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: The text coding sytem for Emacs
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>
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-11-06 8:19 UTC (permalink / raw)
To: help-gnu-emacs
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org>]
* Re: The text coding sytem for Emacs
[not found] ` <mailman.10165.1257495636.2239.help-gnu-emacs@gnu.org>
@ 2009-11-11 2:36 ` Water Lin
0 siblings, 0 replies; 3+ messages in thread
From: Water Lin @ 2009-11-11 2:36 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-11 2:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.