help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To get Unicode file (UTF8) with a leading byte-order-marker characte


From: Pascal J. Bourguignon
Subject: Re: To get Unicode file (UTF8) with a leading byte-order-marker characters?
Date: Wed, 08 Dec 2010 15:12:30 -0000
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux)

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/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]