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

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

Re: [h-e-w] How can I edit Windows Unicode files with Emacs?


From: Jason Rumney
Subject: Re: [h-e-w] How can I edit Windows Unicode files with Emacs?
Date: Wed, 12 May 2004 22:20:08 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt)

Martin Stemplinger <address@hidden> writes:

> Windows XP uses some Unicode variant internally (I think it is some
> kind of multibyte representation). When I open such a file I only
> get random junk. Is there a way to display those files?  It's a
> shame to have to use Notepad for those :-)

The following key sequence will tell Emacs to use utf-16 (Unicode with
16 bit characters) for the following command:

  C-x RET c utf-16 

If you use that immediately before opening the file does it decode the
file correctly?

If open a lot of such files, you can give utf-16 high priority by
adding the following to your .emacs:

(prefer-coding-system 'utf-16)






reply via email to

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