From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: To get Unicode file (UTF8) with a leading byte-order-marker characters? Date: Sat, 12 Jun 2010 14:24:12 +0300 Message-ID: <83wru4jxyb.fsf@gnu.org> References: <878w6p4kbm.fsf@debian-laptop.localdomain> <87fx0t8ew9.fsf@debian-laptop.localdomain> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1276343148 11988 80.91.229.12 (12 Jun 2010 11:45:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 11:45:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 13:45:47 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1ONP9k-0004Ln-VI for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 13:45:45 +0200 Original-Received: from localhost ([127.0.0.1]:57859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONOqL-0004fn-Gy for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 07:25:41 -0400 Original-Received: from [140.186.70.92] (port=37499 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONOpn-0004FI-N6 for help-gnu-emacs@gnu.org; Sat, 12 Jun 2010 07:25:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONOov-0000XE-Np for help-gnu-emacs@gnu.org; Sat, 12 Jun 2010 07:24:14 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42589) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONOov-0000X8-GO for help-gnu-emacs@gnu.org; Sat, 12 Jun 2010 07:24:13 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L3W00400FNFJM00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 12 Jun 2010 14:24:12 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.88.125]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L3W003YZFOB8150@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 12 Jun 2010 14:24:12 +0300 (IDT) In-reply-to: <87fx0t8ew9.fsf@debian-laptop.localdomain> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:73878 Archived-At: > From: Paul Chany > Date: Fri, 11 Jun 2010 22:59:02 +0200 > > Eli Zaretskii writes: > > >> From: Paul Chany > >> > >> The file should be ASCII (using \U escapes for unicode characters) or > >> Unicode (UTF16 or UTF8) with a leading byte-order-marker. > >> > >> How can I get this file using Emacs? > > > > C-x RET f utf-8-with-signature RET > > Well, when I did so I get the following message: > > NAME:NSGenericException REASON:Parse failed at > line 2 (char 41) - unexpected character (wanted ';') INFO:(nil) > > and the translation don't works. :( > What's wrong with it? What did you do exactly? Can you show a precise recipe starting with "emacs -Q" that causes this problem? FWIW, if I save the file you sent and then type C-x RET c utf-8-with-signature RET C-x C-f Ablak.strings RET I get the file in the buffer without any problems.