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

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

Re: On Windows(R) Emacs «shell» mode doesn't prints an output.


From: Yuri Khan
Subject: Re: On Windows(R) Emacs «shell» mode doesn't prints an output.
Date: Thu, 25 Sep 2014 15:25:48 +0700

On Thu, Sep 25, 2014 at 2:43 PM, Eli Zaretskii <eliz@gnu.org> wrote:

>> I thought that the problem is in encoding, and set «shell»'s buffer
>> with «C-x <RET> f» to UTF-16, which, as I know, uses MS, but it didn't
>> fixed the problem.
>
> Console applications on Windows use the current OEM codepage, not
> UTF-16.

This is correct in general, although *some* Windows console
applications can be persuaded to output in UTF-16. (The only example I
know of is cmd.exe /U.)

Also, there is an unofficial unsupported ugly hack to use “chcp 65001”
which makes applications think that the current OEM codepage is UTF-8.
(It is unsupported because that there is some code that assumes at
most two bytes for each character, while UTF-8 may produce up to
four.)



reply via email to

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