From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.help Subject: Re: Can't make emacs use utf-8?? (on WinXP) Date: Tue, 03 Jun 2003 12:16:47 +0200 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054636155 4710 80.91.224.249 (3 Jun 2003 10:29:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2003 10:29:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 12:29:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19N92X-0001Dl-00 for ; Tue, 03 Jun 2003 12:29:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19N94a-0001PZ-Ay for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 06:31:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!news.supernews.com!cicero.benny.turtle-trading.net!nobody Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:p5c5v5TQQ7EVQcZXaOWAeoDlJ1k= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 37 Original-Xref: shelby.stanford.edu gnu.emacs.help:114026 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10520 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10520 Hi Bjoern, Bjoern writes: > But I can't seem to convert my existing files. If I convert them to > utf-8 (or mule-utf-8 ?) with C-x RET f utf-8 and save them, their > encoding is still 'undecided-dos' when I reopen them. Are there any characters in those files that would need converting? > Except for one html File, where it works somehow (the others are > .jsp and .java files, but I've also failed with another html > file). When I create a text file just containing 'abc', it also > works (recognised as utf-8 after reopening). A text file that just has ASCII characters is just ASCII. Emacs has assigned your default encoding, there is nothing in there to detect UTF-8 or any other (8-bit) encoding. > However I tried writing a HelloWorld.java from scratch, and again it > didn't work. Java files should be plain ASCII, if at all possible. HTML files can be in UTF-8, but than they should declare the encoding in a element. > I'm really confused - how can undecided-dos happen at all, if utf-8 > is first in the priority list? Good question. I would expect that for plain ASCII, but you say that a plain ASCII file got utf-8 assigned on opening, so that can't be it. There may be mode-specific specialties. Actually there *should* be, as in the case of HTML or XML, but AFAIK, Emacs doesn't have much of those yet. so long, benny