all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* utf-8-unix vs utf-8-emacs-unix
@ 2021-12-30  2:40 Feng Shu
  2021-12-30  2:43 ` Po Lu
  2021-12-30  3:11 ` LdBeth
  0 siblings, 2 replies; 3+ messages in thread
From: Feng Shu @ 2021-12-30  2:40 UTC (permalink / raw)
  To: emacs-devel


Hello:

Before I use:

 ;; Local Variables:
 ;; coding: utf-8-unix
 ;; End:

Can I change it to the below?

 ;; Local Variables:
 ;; coding: utf-8-emacs-unix
 ;; End:


If I just save Chinese?


-- 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: utf-8-unix vs utf-8-emacs-unix
  2021-12-30  2:40 utf-8-unix vs utf-8-emacs-unix Feng Shu
@ 2021-12-30  2:43 ` Po Lu
  2021-12-30  3:11 ` LdBeth
  1 sibling, 0 replies; 3+ messages in thread
From: Po Lu @ 2021-12-30  2:43 UTC (permalink / raw)
  To: Feng Shu; +Cc: emacs-devel

"Feng Shu" <tumashu@163.com> writes:

> Hello:
>
> Before I use:
>
>  ;; Local Variables:
>  ;; coding: utf-8-unix
>  ;; End:
>
> Can I change it to the below?
>
>  ;; Local Variables:
>  ;; coding: utf-8-emacs-unix
>  ;; End:

utf-8-emacs is the coding system used by Emacs to internally represent
multibyte values, which includes non-Unicode characters.

I don't think it's ever a good idea to save files for human consumption
in that encoding, but both coding systems should encode ordinary Chinese
text the same way.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: utf-8-unix vs utf-8-emacs-unix
  2021-12-30  2:40 utf-8-unix vs utf-8-emacs-unix Feng Shu
  2021-12-30  2:43 ` Po Lu
@ 2021-12-30  3:11 ` LdBeth
  1 sibling, 0 replies; 3+ messages in thread
From: LdBeth @ 2021-12-30  3:11 UTC (permalink / raw)
  To: Feng Shu; +Cc: emacs-devel

>>>>> In <87tueqyfvs.fsf@163.com> 
>>>>>	"Feng Shu" <tumashu@163.com> wrote:

Feng> Hello:

Feng> Before I use:

Feng>  ;; Local Variables:
Feng>  ;; coding: utf-8-unix
Feng>  ;; End:

Feng> Can I change it to the below?

Feng>  ;; Local Variables:
Feng>  ;; coding: utf-8-emacs-unix
Feng>  ;; End:


Feng> If I just save Chinese?

There's a description about utf-8-emacs from Emacs info manual, under
section Coding Systems:

>   The coding system ‘emacs-internal’ (or ‘utf-8-emacs’, which is
> equivalent) means that the file contains non-ASCII characters stored
> with the internal Emacs encoding.  This coding system handles
> end-of-line conversion based on the data encountered, and has the
> usual three variants to specify the kind of end-of-line conversion.

The internal encoding is a "superset" of unicode, so at least you can
expect it is compatible with the utf-8-unix.

-- 
LDB



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-30  3:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-30  2:40 utf-8-unix vs utf-8-emacs-unix Feng Shu
2021-12-30  2:43 ` Po Lu
2021-12-30  3:11 ` LdBeth

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.