[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cyrillic vs UTF-8
From: |
Stefan Monnier |
Subject: |
Re: Cyrillic vs UTF-8 |
Date: |
Sun, 18 May 2003 20:52:29 -0400 |
> > Agreed, but I think one of the problems is that the preference-ordering
> > is the same for load-time-detection as it is for save-time-detection,
> > so if you move utf-8 up for detection you end up saving all new files
> > in utf-8 which is not OK in non-utf-8 locales.
> > I suggested introducing a second preference-order, but nothing came
> > out of it (probably because I didn't code anything up).
>
> I'd like to avoid introducing a new mechanism to control a
> coding system as far as possible. And, the second
> preference-order (used for saving) works only in this case:
>
> (1) The buffer file coding system can't encode the current
> buffer, and
> (2) The most preferred coding system can encode the current
> buffer, and
> (3) A user doesn't want to use the most preferred one.
>
> Isn't it a very rare case?
Maybe it is. In my situation, I'd like utf-8 to be at the top
of the preferences w.r.t decoding because it virtually never
guesses wrong.
OTOH, I'm still using a mostly-latin-1 environment, so I'd
still rather avoid utf-8 when I can. I.e. latin-1 should be at
the top of my preferences w.r.t encoding.
I.e. utf-8 is definitely not my most preferred encoding, but
since Emacs will often mistake a utf-8 text for latin-1 whereas
it virtually never mistakes a latin-1 text for utf-8, I do
put utf-8 as my most preferred encoding (and then try not to
forget to do C-x RET f when saving a new file).
Stefan
Re: Cyrillic vs UTF-8, Dave Love, 2003/05/04
Re: Cyrillic vs UTF-8, Kenichi Handa, 2003/05/05
Re: Cyrillic vs UTF-8, Kenichi Handa, 2003/05/18
- Re: Cyrillic vs UTF-8,
Stefan Monnier <=