From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: To get Unicode file (UTF8) with a leading byte-order-marker characters?
Date: Tue, 08 Jun 2010 19:38:52 +0200 [thread overview]
Message-ID: <87r5khpgpf.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.3.1276010799.23544.help-gnu-emacs@gnu.org
Paul Chany <csanyipal@gmail.com> writes:
> Hi,
>
> I'm using Emacs to program in Objective-C following a GNUstep Tutorial.
> In the application that I made there is a resource file for localisation
> (translation): Ablak.strings.
>
> 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?
The generation of the byte-order-marker is automatic, for utf-16-be or
utf-16-le. It is meaningless for utf-8.
Just put on the first or second line of the file a comment specifyin
the coding system you want:
/* -*- coding:utf-16-be -*- */
--
__Pascal Bourguignon__ http://www.informatimago.com/
next parent reply other threads:[~2010-06-08 17:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3.1276010799.23544.help-gnu-emacs@gnu.org>
2010-06-08 17:38 ` Pascal J. Bourguignon [this message]
2010-06-08 15:26 To get Unicode file (UTF8) with a leading byte-order-marker characters? Paul Chany
2010-06-08 23:02 ` Eli Zaretskii
2010-06-11 20:59 ` Paul Chany
2010-06-12 5:56 ` Kevin Rodgers
2010-06-12 11:24 ` Eli Zaretskii
2010-06-12 11:49 ` Paul Chany
2010-06-13 4:55 ` tomas
2010-06-13 8:14 ` Paul Chany
2010-06-14 12:17 ` Paul Chany
[not found] ` <mailman.2.1276404928.6139.help-gnu-emacs@gnu.org>
[not found] ` <slrni1e3u2.n7i.nospam-abuse@powdermilk.math.berkeley.edu>
2010-06-15 13:56 ` Jason Rumney
[not found] ` <slrni1gaut.q6l.nospam-abuse@powdermilk.math.berkeley.edu>
[not found] ` <pco39wn85iv.fsf@math.ntnu.no>
2010-06-16 14:10 ` Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5khpgpf.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.