all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files.
@ 2006-11-20 11:58 Hongsheng
  2006-11-20 12:54 ` Zhang Wei
  2006-11-28  6:33 ` Kenichi Handa
  0 siblings, 2 replies; 3+ messages in thread
From: Hongsheng @ 2006-11-20 11:58 UTC (permalink / raw)
  Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

Dear Kenichi,

This problem have been resoved by you, in my mind, but now, it appear again.

Attached are two tex files encoded with GB18030, the Emacs will display
GB18030-nomal.tex correctly, but the chinese characters in GB18030-chaos.tex
will be chaos, all the chaos codes use the *ISO8859-1*  encoding scheme.

Why?

Best,
Hongsheng.

P.S.  Both of the two files can be correctly displayed by gedit on my computer.

[-- Attachment #2: GB18030-chaos.tex.bz2 --]
[-- Type: application/octet-stream, Size: 4409 bytes --]

[-- Attachment #3: GB18030-nomal.tex.bz2 --]
[-- Type: application/octet-stream, Size: 6354 bytes --]

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

* Re: Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files.
  2006-11-20 11:58 Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files Hongsheng
@ 2006-11-20 12:54 ` Zhang Wei
  2006-11-28  6:33 ` Kenichi Handa
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang Wei @ 2006-11-20 12:54 UTC (permalink / raw)
  Cc: Hongsheng

Hongsheng <zhaohscas@yahoo.com.cn> writes:

[...]

> Attached are two tex files encoded with GB18030, the Emacs will display
> GB18030-nomal.tex correctly, but the chinese characters in GB18030-chaos.tex
> will be chaos, all the chaos codes use the *ISO8859-1*  encoding scheme.

Just C-x <RET> r gbk, or C-x <RET> r gb18030, to revert your buffer with
the proper coding system, Emacs is not always so smart to detect coding
system correctly.

Use file variables wherever possible, put

%% -*- coding: gb18030; -*-

as the first line of your tex file, or put

%% Local Variables:
%% coding: gb18030
%% End:

at the end of your tex file.

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

* Re: Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files.
  2006-11-20 11:58 Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files Hongsheng
  2006-11-20 12:54 ` Zhang Wei
@ 2006-11-28  6:33 ` Kenichi Handa
  1 sibling, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2006-11-28  6:33 UTC (permalink / raw)
  Cc: emacs-devel

Sorry for the late response.

In article <20061120115818.GA5263@localdomain>, Hongsheng <zhaohscas@yahoo.com.cn> writes:

> This problem have been resoved by you, in my mind, but now, it appear again.

> Attached are two tex files encoded with GB18030, the Emacs will display
> GB18030-nomal.tex correctly, but the chinese characters in GB18030-chaos.tex
> will be chaos, all the chaos codes use the *ISO8859-1*  encoding scheme.

> Why?

That's because GB18030-chaos.tex contains this line:

\usepackage[latin1]{inputenc}

For *.tex file, latexenc-find-file-coding-system runs to
check the encoding.

When you delete that line, Emacs shoule be able to detect
that the file is in GB18030 in Chinese-GB18030 lang. env.

Why do you have that line when your file is not Latin-1.

---
Kenichi Handa
handa@m17n.org

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

end of thread, other threads:[~2006-11-28  6:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 11:58 Emacs unicode 2 cvs display chaos chodes on GB18030 chinese encoding files Hongsheng
2006-11-20 12:54 ` Zhang Wei
2006-11-28  6:33 ` Kenichi Handa

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.