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

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

Re: Windows + Eshell: fixing character encoding?


From: Peter Dyballa
Subject: Re: Windows + Eshell: fixing character encoding?
Date: Thu, 30 Jul 2009 16:41:39 +0200


Am 30.07.2009 um 15:39 schrieb Elena:

locale-coding-system is a variable defined in `C source code'.
Its value is cp1252


This is as wrong as is iso-latin-1. In CP1252 your \205 and \212 codes are:

        ;   oct   dec   hex    UCS2    UTF-8
        ;=====================================
        … = 205 = 133 = 85 = U+2026 = E2 80 A6 : HORIZONTAL ELLIPSIS
Š = 212 = 138 = 8A = U+0160 = C5 A0 : LATIN CAPITAL LETTER S WITH CARON

Use Jason Rumney's recommendation! I can see from ICU files that in CP850

        \205 -> [à]  00E0  LATIN SMALL LETTER A WITH GRAVE
        \212 -> [è]  00E8  LATIN SMALL LETTER E WITH GRAVE


GNU Emacsen 22 and 23 allow to re-open a *file* in a new encoding: C- x RET r <your choice> RET (Options menu -> Mule -> Set Coding Systems -> For Reverting This File Now). Once you saved the faultily looking buffer into a (temporary, growing) file (don't kill the buffer) you can revert it in a different representation of its internal bits and bytes.

--
Greetings

  Pete

Klingons do not believe in indentation - except perhaps in the skulls of their project managers.






reply via email to

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