From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: eric.goforth@gmail.com Newsgroups: gmane.emacs.help Subject: How to get emacs to save files as UTF8 Date: 28 Jul 2006 11:21:31 -0700 Organization: http://groups.google.com Message-ID: <1154110891.856955.287080@p79g2000cwp.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1154112064 7383 80.91.229.2 (28 Jul 2006 18:41:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 18:41:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 20:41:01 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6XG4-0002TH-14 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 20:40:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6XG3-0003GD-Ck for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 14:40:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p79g2000cwp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 64.128.67.16 Original-X-Trace: posting.google.com 1154110897 27799 127.0.0.1 (28 Jul 2006 18:21:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 28 Jul 2006 18:21:37 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p79g2000cwp.googlegroups.com; posting-host=64.128.67.16; posting-account=8G0_hQ0AAABM9y1YHzsJpBbtpXj-2AUP Original-Xref: shelby.stanford.edu gnu.emacs.help:140716 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36342 Archived-At: Hello, I've changed the following in my .emacs file: (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(case-fold-search t) '(current-language-environment "UTF-8") '(default-input-method "rfc1345") '(global-font-lock-mode t nil (font-lock))) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) However, I'm opening all of the .asp files in a directory using dired, doing a search and replace for 65001, replacing it with 65001. The first line of all my .asp files is: <%@ Language=VBScript CodePage=65001 %> I then save all the files, but when I open one with notepad and do a save as, ANSI is the default Encoding, leading me to think that they aren't being saved as UTF8. I'm using NTEmacs 21.3.1. Alternatively, if someone knows of a quick way to change the Encoding of a bunch of files to UTF8 in Windows XP, I'm all ears. -Eric