[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; [nxml] BOM and utf-8
From: |
Patrick Drechsler |
Subject: |
Re: 23.0.60; [nxml] BOM and utf-8 |
Date: |
Mon, 19 May 2008 16:32:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
"Stephen J. Turnbull" <address@hidden> writes:
> Patrick Drechsler writes:
>
> > I second the opinion that it would be nice to have the option to
> > hide (or remove) the BOM while editing the file in Emacs and
> > reinserting it (if it was removed) when done editing.
>
> I believe that there is a utf-8-signature or similarly named coding
> system which does this. (It's called utf-8-bom in XEmacs but IIRC
> Emacs uses the more accurate name, since UTF-8 is of course always
> bigendian.)
Thanks for the feedback Stephen.
I am not able to find this coding system by searching through the list
of possible coding systems (describe-coding-system -> TAB). The only
appearances of the string "sig" are all utf-16 related (the string "bom"
did not return any results either):
,----
| 4 matches for "sig" in buffer: *Completions*
| 386:utf-16be-with-signature utf-16be-with-signature-dos
| 387:utf-16be-with-signature-mac utf-16be-with-signature-unix
| 390:utf-16le-with-signature utf-16le-with-signature-dos
| 391:utf-16le-with-signature-mac utf-16le-with-signature-unix
`----
> You can use the auto-coding-alist (or something like that) to ensure
> that files with certain names always get the strip-BOM-on-input,
> prepend-BOM-on-output behavior.
Cheers,
Patrick
- Re: 23.0.60; [nxml] BOM and utf-8, (continued)
23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/17
- Re: 23.0.60; [nxml] BOM and utf-8, Miles Bader, 2008/05/17
- Re: 23.0.60; [nxml] BOM and utf-8, Eli Zaretskii, 2008/05/17
- Re: 23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/18
- Re: 23.0.60; [nxml] BOM and utf-8, Jason Rumney, 2008/05/18
- Re: 23.0.60; [nxml] BOM and utf-8, Patrick Drechsler, 2008/05/18
- Re: 23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/18
- Re: 23.0.60; [nxml] BOM and utf-8,
Patrick Drechsler <=
- Re: 23.0.60; [nxml] BOM and utf-8, Eli Zaretskii, 2008/05/19
- Re: 23.0.60; [nxml] BOM and utf-8, Patrick Drechsler, 2008/05/20
Re: 23.0.60; [nxml] BOM and utf-8, joakim, 2008/05/18
Re: 23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/18
Re: 23.0.60; [nxml] BOM and utf-8, Miles Bader, 2008/05/18
Re: 23.0.60; [nxml] BOM and utf-8, David Kastrup, 2008/05/18
Re: 23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/18
Re: 23.0.60; [nxml] BOM and utf-8, David Kastrup, 2008/05/19
Re: 23.0.60; [nxml] BOM and utf-8, Stephen J. Turnbull, 2008/05/19
Re: 23.0.60; [nxml] BOM and utf-8, David Kastrup, 2008/05/19