unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Detecting BOM for UTF files
Date: Wed, 15 Oct 2003 17:20:16 +0200	[thread overview]
Message-ID: <m3ismqttn3.fsf@seneca.benny.turtle-trading.net> (raw)
In-Reply-To: <1B6B4E43-FF20-11D7-BEA9-000393861220@sage.com> (Sébastien Kirche's message of "Wed, 15 Oct 2003 16:58:59 +0200")

Hi Sébastien,


> Andreas Schwab a écrit :
>
>> ??? UTF-8 does not need a BOM, it's an 8-bit encoding.

Sébastien Kirche <sebastien.kirche@sage.com> writes:
> Mmmh, FAQ of Unicode.org explains that there exists one BOM for
> UTF-8 too :

There is no contradiction.  You *can* add a BOM to UTF-8 text, it just
doesn't serve a purpose, because UTF-8 doesn't have a "byte order" to
mark.  In addition, the BOM makes text manipulation more difficult, so
it is actually not recommended by the Unicode standard.

> Anyway, do I have to understand that it isn't poosible to guess type
> without BOM ?

No.  Current versions of Emacs can handle UTF-8 automatically without
additional packages.  You just have to configure it right.  Have a
look at the function prefer-coding-system.

If you have further questions, you should probably post them to an
Emacs user list or newsgroup like comp.emacs.


benny

      parent reply	other threads:[~2003-10-15 15:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15 13:55 Detecting BOM for UTF files Sébastien Kirche
2003-10-15 14:23 ` Andreas Schwab
2003-10-15 14:58   ` Sébastien Kirche
2003-10-15 15:08     ` Andreas Schwab
2003-10-15 15:20     ` Benjamin Riefenstahl [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ismqttn3.fsf@seneca.benny.turtle-trading.net \
    --to=benjamin.riefenstahl@epost.de \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).