|
From: | address@hidden |
Subject: | Re: about xhtml-mode encoding problem |
Date: | Tue, 10 Jul 2007 08:29:35 +0900 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070604) |
B. T. Raven wrote:
lu@luxdo.jp wrote:I added these line in my .emacs. (modify-coding-system-alist 'file "\\.jsp\\'" 'sjis) (add-to-list 'file-coding-system-alist '("\\.jsp\\'" . sjis)) (add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis)) (prefer-coding-system 'sjis) But I'm sorry to say all of them doesn't work. when I save the file it become utf-8. I'm using emacs 22 on linux and windows xp. Peter Dyballa wrote:Am 09.07.2007 um 16:44 schrieb lu:I want to know How to solve this problem.You might try to use (file) local variables in the first line(s) of the file that are a valid XHTML comment:<comment string> -*- coding: sjis; or insert a (prefer-coding-system 'sjis)into your ~/.emacs file. More elaborate would be (not sure whether it works)(modify-coding-system-alist 'file "\\.xhtml\\'" 'sjis) or, which works for me with different values: (add-to-list 'file-coding-system-alist '("\\.xhtml\\'" . sjis)) -- Greetings Pete "A mathematician is a machine that turns coffee into theorems."What happens if you type C-x RET c sjis C-x C-w FILENAME? Does that save the file using the sjis coding system?Ed _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>>What happens if you type C-x RET c sjis C-x C-w FILENAME? Does that save the file using the sjis coding system?
The file corretly saved by sjis. But when I type c-x c-s it become utf-8.
[Prev in Thread] | Current Thread | [Next in Thread] |