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

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

Re: utf-16


From: Stefan Monnier
Subject: Re: utf-16
Date: Fri, 16 May 2014 11:16:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> I have a file with marker "# -*- utf-16 -*- in line 1.

[ This is a problematic case in itself: to read the "-*- utf-16 -*-" Emacs
  needs to know what byte-sequence represents, say, the character "u".
  But at that time (when decoding the file), it can't know yet that it
  will end up saying say "u" is encoded using utf-16.  ]

> Is there any variable which influences the interpretation of
> "utf-16" ?

General rule: don't use "-*- coding: utf-16 -*-".
Better use C-x RET f utf-16-le-with-signature RET before writing the file.


        Stefan




reply via email to

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