emacs-devel
[Top][All Lists]
Advanced

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

Re: coding tags and utf-16


From: Richard M. Stallman
Subject: Re: coding tags and utf-16
Date: Wed, 04 Jan 2006 22:46:13 -0500

    If a file is encoded without BOM, we must use the less
    reliable heuristics to guess utf-16be or utf-16le.  If you
    find a coding-tag spec by ignoring all zero bytes at even
    byte indexes, it means that the file is, in high
    possibility, utf-16be whatever the tag value is.  If you
    find a coding-tag spec by ignoring all zero bytes at odd
    byte indexes, it means that the file is utf-16le whatever
    the tag value is.

Does Emacs already implement these heuristics?

    But, those are anyway just heuristics; not 100% reliable.
    So I think we need a user option to turn it on and off, or
    perhaps a user option to select which kind of heuristics.

Should we install this option now?




reply via email to

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