From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bjoern Newsgroups: gmane.emacs.help Subject: Re: Can't make emacs use utf-8?? (on WinXP) Date: Wed, 04 Jun 2003 02:26:45 +0200 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1054686276 19284 80.91.224.249 (4 Jun 2003 00:24:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 00:24:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 02:24:34 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 19NM4w-00050t-00 for ; Wed, 04 Jun 2003 02:24:34 +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 19NM5g-0008Ri-5Q for gnu-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2003 20:25:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!129.187.19.220!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 129.187.19.220 Original-X-Trace: fu-berlin.de 1054686294 10154597 129.187.19.220 (16 [142197]) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en, en-us In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:114077 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:10571 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10571 Benjamin Riefenstahl wrote: [...] >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? Sometimes. I guess I can with the current state now - if press some non-ASCII keys, the encoding switched to utf-8 immediately. It turned out the real problem was with my webserver (Tomcat) and the JSTL that refuse to set a UTF 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. But wasn't Java the first programming language to promote Unicode? I haven't tried it yet, as untill yesterday I really stuck to ASCII. [...] >>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. That's still puzzling me, but it's not so important at the moment. Thanks for all the help, everyone! Bjoern