From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: set UTF-8 for a file (HTML) Date: Sat, 09 Feb 2008 20:59:56 -0500 Message-ID: <47AE5A9C.5030403@speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202608850 5465 80.91.229.12 (10 Feb 2008 02:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Feb 2008 02:00:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 10 03:01:13 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JO1VH-0006DF-HU for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Feb 2008 03:01:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO1Uo-0004lm-86 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Feb 2008 21:00:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JO1UZ-0004lh-4Y for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 21:00:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JO1UX-0004lV-5z for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 21:00:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO1UX-0004lS-2i for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 21:00:25 -0500 Original-Received: from mail3.sea5.speakeasy.net ([69.17.117.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JO1UW-000604-Ti for help-gnu-emacs@gnu.org; Sat, 09 Feb 2008 21:00:25 -0500 Original-Received: (qmail 1259 invoked from network); 10 Feb 2008 02:00:21 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO [192.168.0.26]) (gebser@[66.93.11.17]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 10 Feb 2008 02:00:21 -0000 User-Agent: Thunderbird 2.0.0.0 (X11/20070326) X-Enigmail-Version: 0.95.6 OpenPGP: id=45796D04 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:51387 Archived-At: I'm editing an HTML file (in emacs, of course) and want to preserve the utf-8 encoding when the file is opened in subsequent sessions. I know I can put a line at the top of the file which will set a variable in emacs whenever the file is opened. So what should this line say to specify that the file is encoded in utf-8? Thanks. -- The significant problems we face cannot be solved at the same level of thinking we were at when we created them. -- Albert Einstein