* UTF8
@ 2004-01-18 13:22 David Rasmussen
2004-01-18 17:05 ` UTF8 Jesper Harder
2004-01-19 8:14 ` UTF8 R B Mahoney
0 siblings, 2 replies; 22+ messages in thread
From: David Rasmussen @ 2004-01-18 13:22 UTC (permalink / raw)
When I just do
'emacs whatever.txt'
and edit the newly created file using some danish special characters,
and then save, I get an ISO-8859-1 encoded text file. How do I get emacs
to use UTF8 instead of ISO-8859-1 as default?
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-18 13:22 UTF8 David Rasmussen
@ 2004-01-18 17:05 ` Jesper Harder
2004-01-18 18:09 ` UTF8 David Rasmussen
2004-01-19 8:14 ` UTF8 R B Mahoney
1 sibling, 1 reply; 22+ messages in thread
From: Jesper Harder @ 2004-01-18 17:05 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> 'emacs whatever.txt'
>
> and edit the newly created file using some danish special characters,
> and then save, I get an ISO-8859-1 encoded text file. How do I get
> emacs to use UTF8 instead of ISO-8859-1 as default?
Do `C-x RET f utf-8' in the buffer. If you always want to use utf-8,
you should change your locale.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-18 17:05 ` UTF8 Jesper Harder
@ 2004-01-18 18:09 ` David Rasmussen
2004-01-18 21:36 ` UTF8 Jesper Harder
2004-01-19 23:17 ` UTF8 LEE Sau Dan
0 siblings, 2 replies; 22+ messages in thread
From: David Rasmussen @ 2004-01-18 18:09 UTC (permalink / raw)
Jesper Harder wrote:
>
> Do `C-x RET f utf-8' in the buffer.
Thanks.
> If you always want to use utf-8,
> you should change your locale.
In emacs? Where do I do that?
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-18 18:09 ` UTF8 David Rasmussen
@ 2004-01-18 21:36 ` Jesper Harder
2004-01-19 23:17 ` UTF8 LEE Sau Dan
1 sibling, 0 replies; 22+ messages in thread
From: Jesper Harder @ 2004-01-18 21:36 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> Jesper Harder wrote:
>> If you always want to use utf-8, you should change your locale.
>
> In emacs?
If you want all your applications to use utf-8, no. If you just want
Emacs to prefer utf-8 use `set-language-environment'.
> Where do I do that?
Set LANG to something like en_GB.utf8 (or da_DK.utf8).
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-18 18:09 ` UTF8 David Rasmussen
2004-01-18 21:36 ` UTF8 Jesper Harder
@ 2004-01-19 23:17 ` LEE Sau Dan
2004-01-20 13:37 ` UTF8 David Rasmussen
1 sibling, 1 reply; 22+ messages in thread
From: LEE Sau Dan @ 2004-01-19 23:17 UTC (permalink / raw)
>>>>> "David" == David Rasmussen <david.rasmussen@gmx.net> writes:
David> Jesper Harder wrote:
>> Do `C-x RET f utf-8' in the buffer.
David> Thanks.
>> If you always want to use utf-8, you should change your locale.
David> In emacs? Where do I do that?
If you only want that inside emacs, M-x apropos coding-system RET.
Check those items with a "default" in the name. Then, do an
appropriate (setq ...) in your ~/.emacs.
If you want Emacs and other applications to use UTF-8 instead of
ISO-8859-1 by default, set the environment variable LANG to something
like "da_DK.utf8" before starting Emacs and those apps.
--
Lee Sau Dan 李守敦(Big5) ~{@nJX6X~}(HZ)
E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-19 23:17 ` UTF8 LEE Sau Dan
@ 2004-01-20 13:37 ` David Rasmussen
2004-01-20 16:16 ` UTF8 Jesper Harder
2004-01-20 16:58 ` UTF8 Stefan Monnier
0 siblings, 2 replies; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 13:37 UTC (permalink / raw)
LEE Sau Dan wrote:
>
> If you want Emacs and other applications to use UTF-8 instead of
> ISO-8859-1 by default, set the environment variable LANG to something
> like "da_DK.utf8" before starting Emacs and those apps.
>
But the rest of my system already is using UTF-8,
and my LANG is da_DK.UTF-8. So why isn't emacs
automagically using UTF-8 by default?
I have set it up manually in emacs now, though.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 13:37 ` UTF8 David Rasmussen
@ 2004-01-20 16:16 ` Jesper Harder
2004-01-20 17:05 ` UTF8 David Rasmussen
2004-01-20 16:58 ` UTF8 Stefan Monnier
1 sibling, 1 reply; 22+ messages in thread
From: Jesper Harder @ 2004-01-20 16:16 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> But the rest of my system already is using UTF-8, and my LANG is
> da_DK.UTF-8. So why isn't emacs automagically using UTF-8 by
> default?
My crystall ball tells me that you're using Emacs 21.2. It should
work in Emacs 21.3.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 16:16 ` UTF8 Jesper Harder
@ 2004-01-20 17:05 ` David Rasmussen
2004-01-20 17:52 ` UTF8 Jesper Harder
0 siblings, 1 reply; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 17:05 UTC (permalink / raw)
Jesper Harder wrote:
>
> My crystall ball tells me that you're using Emacs 21.2. It should
> work in Emacs 21.3.
Heheh... Emacs says 21.3.1.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 17:05 ` UTF8 David Rasmussen
@ 2004-01-20 17:52 ` Jesper Harder
2004-01-20 18:27 ` UTF8 David Rasmussen
0 siblings, 1 reply; 22+ messages in thread
From: Jesper Harder @ 2004-01-20 17:52 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> Jesper Harder wrote:
>> My crystall ball tells me that you're using Emacs 21.2. It should
>> work in Emacs 21.3.
>
> Heheh... Emacs says 21.3.1.
If you do:
$ LANG=da_DK.UTF-8 emacs-21.3 -q --no-site-file
Which language environment does `C-h C-l RET' report?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 17:52 ` UTF8 Jesper Harder
@ 2004-01-20 18:27 ` David Rasmussen
2004-01-20 19:09 ` UTF8 Jesper Harder
0 siblings, 1 reply; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 18:27 UTC (permalink / raw)
Jesper Harder wrote:
>
> If you do:
>
> $ LANG=da_DK.UTF-8 emacs-21.3 -q --no-site-file
>
> Which language environment does `C-h C-l RET' report?
UTF-8. But as I wrote elsewhere, I already have
set this up in the Mule menu. The interesting
thing is why it wasn't UTF-8 to begin with.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 18:27 ` UTF8 David Rasmussen
@ 2004-01-20 19:09 ` Jesper Harder
2004-01-20 19:31 ` UTF8 David Rasmussen
0 siblings, 1 reply; 22+ messages in thread
From: Jesper Harder @ 2004-01-20 19:09 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> Jesper Harder wrote:
>> If you do:
>> $ LANG=da_DK.UTF-8 emacs-21.3 -q --no-site-file
>> Which language environment does `C-h C-l RET' report?
>
> UTF-8. But as I wrote elsewhere, I already have set this up in the
> Mule menu. The interesting thing is why it wasn't UTF-8 to begin
> with.
You're missing the point.
When you start Emacs with '-q --no-site-file' it does not read your
customizations. So, the reason it didn't use utf-8 is a setting in
one of your init files.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 19:09 ` UTF8 Jesper Harder
@ 2004-01-20 19:31 ` David Rasmussen
2004-01-20 20:05 ` UTF8 Jesper Harder
0 siblings, 1 reply; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 19:31 UTC (permalink / raw)
Jesper Harder wrote:
>
> You're missing the point.
>
Really?
> When you start Emacs with '-q --no-site-file' it does not read your
> customizations. So, the reason it didn't use utf-8 is a setting in
> one of your init files.
What? What init file?
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 19:31 ` UTF8 David Rasmussen
@ 2004-01-20 20:05 ` Jesper Harder
2004-01-20 20:17 ` UTF8 David Rasmussen
0 siblings, 1 reply; 22+ messages in thread
From: Jesper Harder @ 2004-01-20 20:05 UTC (permalink / raw)
David Rasmussen <david.rasmussen@gmx.net> writes:
> Jesper Harder wrote:
>
>> When you start Emacs with '-q --no-site-file' it does not read your
>> customizations. So, the reason it didn't use utf-8 is a setting in
>> one of your init files.
>
> What? What init file?
.emacs, default.el or site-start.el.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 20:05 ` UTF8 Jesper Harder
@ 2004-01-20 20:17 ` David Rasmussen
2004-01-20 20:19 ` UTF8 David Rasmussen
0 siblings, 1 reply; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 20:17 UTC (permalink / raw)
Jesper Harder wrote:
>
> .emacs, default.el or site-start.el.
Weird. The system was newly installed. I can't
reproduce it now, even on another new account. My
best guess is this: I copied my .emacs from my
cygwin system on a Windows computer. Maybe it had
a specific line in it, that told emacs to use
ISO-8859-1. Maybe.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 20:17 ` UTF8 David Rasmussen
@ 2004-01-20 20:19 ` David Rasmussen
0 siblings, 0 replies; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 20:19 UTC (permalink / raw)
David Rasmussen wrote:
>
> Weird. The system was newly installed. I can't reproduce it now, even on
> another new account. My best guess is this: I copied my .emacs from my
> cygwin system on a Windows computer. Maybe it had a specific line in it,
> that told emacs to use ISO-8859-1. Maybe.
>
Yep! That's it. I just checked the old cygwin
.emacs, and it had the line
'(current-language-environment "Latin-1")
where the other has UTF-8.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 13:37 ` UTF8 David Rasmussen
2004-01-20 16:16 ` UTF8 Jesper Harder
@ 2004-01-20 16:58 ` Stefan Monnier
1 sibling, 0 replies; 22+ messages in thread
From: Stefan Monnier @ 2004-01-20 16:58 UTC (permalink / raw)
> But the rest of my system already is using UTF-8,
> and my LANG is da_DK.UTF-8. So why isn't emacs
> automagically using UTF-8 by default?
That's because the utf-8 support in Emacs was considered subpar, IIRC.
In the CVS code, this should not be the case anymore.
Stefan
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-18 13:22 UTF8 David Rasmussen
2004-01-18 17:05 ` UTF8 Jesper Harder
@ 2004-01-19 8:14 ` R B Mahoney
2004-01-20 16:59 ` UTF8 Stefan Monnier
1 sibling, 1 reply; 22+ messages in thread
From: R B Mahoney @ 2004-01-19 8:14 UTC (permalink / raw)
On Sun, 18 Jan 2004 14:22:10 +0100, David Rasmussen
<david.rasmussen@gmx.net> wrote:
> When I just do
>
> 'emacs whatever.txt'
>
> and edit the newly created file using some danish special characters,
> and then save, I get an ISO-8859-1 encoded text file. How do I get emacs
> to use UTF8 instead of ISO-8859-1 as default?
to your init file (e.g. ~/.emacs.el) you could add:
(setq load-path (cons "/path/to/utf-8-input_file/" load-path))
(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-selection-coding-system 'utf-8)
(modify-coding-system-alist 'file "" 'utf-8)
(setq default-enable-multibyte-characters t)
(load-library "utf-8-input")
(setq default-input-method 'utf-8-input)
`utf-8-input.el' is available at:
http://homepages.comnet.co.nz/~r-mahoney/scripts/scripts.html
Best regards,
Richard MAHONEY
--
Richard MAHONEY | rbm49@ext.canterbury.ac.nz
| homepages.comnet.co.nz/~r-mahoney
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-19 8:14 ` UTF8 R B Mahoney
@ 2004-01-20 16:59 ` Stefan Monnier
2004-01-20 17:07 ` UTF8 David Rasmussen
0 siblings, 1 reply; 22+ messages in thread
From: Stefan Monnier @ 2004-01-20 16:59 UTC (permalink / raw)
> (setq load-path (cons "/path/to/utf-8-input_file/" load-path))
> (prefer-coding-system 'utf-8)
> (set-terminal-coding-system 'utf-8)
> (set-selection-coding-system 'utf-8)
> (modify-coding-system-alist 'file "" 'utf-8)
> (setq default-enable-multibyte-characters t)
> (load-library "utf-8-input")
> (setq default-input-method 'utf-8-input)
Of course, seeing the above list, you should think "hmm, all this just to
use utf-8, there must be a better way".
At which point you might discover set-language-environment.
Stefan
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: UTF8
2004-01-20 16:59 ` UTF8 Stefan Monnier
@ 2004-01-20 17:07 ` David Rasmussen
0 siblings, 0 replies; 22+ messages in thread
From: David Rasmussen @ 2004-01-20 17:07 UTC (permalink / raw)
Stefan Monnier wrote:
>
> Of course, seeing the above list, you should think "hmm, all this just to
> use utf-8, there must be a better way".
> At which point you might discover set-language-environment.
>
Which is what happened :)
I just did in the menu:
Options->Mule->Set Language Environment->UTF-8
It seems to work.
/David
^ permalink raw reply [flat|nested] 22+ messages in thread
* utf8
@ 2013-11-01 9:26 Denise Chemla
2013-11-01 14:18 ` utf8 Peter Dyballa
2013-11-01 17:50 ` utf8 Andreas Röhler
0 siblings, 2 replies; 22+ messages in thread
From: Denise Chemla @ 2013-11-01 9:26 UTC (permalink / raw)
To: help-gnu-emacs
Hi everybody,
I am french, I use intensively gnu-emacs but I don't know it too much. I probably click on bad keys from my keyboard and now, each time I want to save my file using ctrl-s, emacs tells me something like "please confirm your encoding is well utf-8-unix" and only after I write all the letters U T F - 8 - U N I X, it saves my work. I am completely tired to type all those letters at each time I save.
Could you help me, telling me what I made wrong ?
Sincerely yours,
Denise Chemla
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: utf8
2013-11-01 9:26 utf8 Denise Chemla
@ 2013-11-01 14:18 ` Peter Dyballa
2013-11-01 17:50 ` utf8 Andreas Röhler
1 sibling, 0 replies; 22+ messages in thread
From: Peter Dyballa @ 2013-11-01 14:18 UTC (permalink / raw)
To: Denise Chemla; +Cc: help-gnu-emacs
Am 01.11.2013 um 10:26 schrieb Denise Chemla:
> each time I want to save my file using ctrl-s,
That cannot work! C-s is bound to incremental-search- or isearch-forward.
> emacs tells me something like "please confirm your encoding is well utf-8-unix" and only after I write all the letters U T F - 8 - U N I X, it saves my work. I am completely tired to type all those letters at each time I save.
You should check the environment variables LANG and LC_ALL. They make GNU Emacs choose an encoding that corresponds to their values. It might work to override this setting by using in your init file
(prefer-coding-system 'utf-8)
BTW, you don't need to repeat the letters "U T F - 8 - U N I X", the second and the other times you can use the arrow keys (up or down) to get your preferred value back. TAB also allows to expand the word started.
--
Greetings
Pete
A census taker is a man who goes from house to house increasing the population.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: utf8
2013-11-01 9:26 utf8 Denise Chemla
2013-11-01 14:18 ` utf8 Peter Dyballa
@ 2013-11-01 17:50 ` Andreas Röhler
1 sibling, 0 replies; 22+ messages in thread
From: Andreas Röhler @ 2013-11-01 17:50 UTC (permalink / raw)
To: help-gnu-emacs
Am 01.11.2013 10:26, schrieb Denise Chemla:
> Hi everybody,
>
>
>
> I am french, I use intensively gnu-emacs but I don't know it too much. I probably click on bad keys from my keyboard and now, each time I want to save my file using ctrl-s, emacs tells me something like "please confirm your encoding is well utf-8-unix" and only after I write all the letters U T F - 8 - U N I X, it saves my work. I am completely tired to type all those letters at each time I save.
>
>
>
> Could you help me, telling me what I made wrong ?
>
>
>
> Sincerely yours,
>
> Denise Chemla
>
Maybe you have some characters in your text which aren't recognised. Got this sometimes from copy-and-past mailings.
Check the text if something isn't displayed correctly.
If this is the case, correct theses letters.
Andreas
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2013-11-01 17:50 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-18 13:22 UTF8 David Rasmussen
2004-01-18 17:05 ` UTF8 Jesper Harder
2004-01-18 18:09 ` UTF8 David Rasmussen
2004-01-18 21:36 ` UTF8 Jesper Harder
2004-01-19 23:17 ` UTF8 LEE Sau Dan
2004-01-20 13:37 ` UTF8 David Rasmussen
2004-01-20 16:16 ` UTF8 Jesper Harder
2004-01-20 17:05 ` UTF8 David Rasmussen
2004-01-20 17:52 ` UTF8 Jesper Harder
2004-01-20 18:27 ` UTF8 David Rasmussen
2004-01-20 19:09 ` UTF8 Jesper Harder
2004-01-20 19:31 ` UTF8 David Rasmussen
2004-01-20 20:05 ` UTF8 Jesper Harder
2004-01-20 20:17 ` UTF8 David Rasmussen
2004-01-20 20:19 ` UTF8 David Rasmussen
2004-01-20 16:58 ` UTF8 Stefan Monnier
2004-01-19 8:14 ` UTF8 R B Mahoney
2004-01-20 16:59 ` UTF8 Stefan Monnier
2004-01-20 17:07 ` UTF8 David Rasmussen
-- strict thread matches above, loose matches on Subject: below --
2013-11-01 9:26 utf8 Denise Chemla
2013-11-01 14:18 ` utf8 Peter Dyballa
2013-11-01 17:50 ` utf8 Andreas Röhler
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).