mapcar to convert octals to ascii
- From: Haines Brown <brownh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 03 Jan 2008 11:12:35 GMT
I've asked before without luck. When I seek to display a file in emacs
that uses the windows-1251 character set, the characters specific to
windows-1251 are displayed in octal notation. Consequently I need to map
these octals to some ASCII equivalents using char-table function or mapcar.
For example, a document may have a closed curly single quotation mark
(dec 146, hex 92), which appears in the emacs buffer as octal /222. If I
save that document, all its octals are simply replaced with a "b". I'd like
emacs to do a conversion so that I see this character as an apostrophe
(decimal 39) in the buffer and can save it as such.
Not being a programmer, I looked for examples of a char-table or
use of mapcar function to do the conversion in emacs, but without luck.
I'm using emacs 23.60.0.1 under debian etch and the DejaVu font. I
assume everyone else has the same problem as I do with the Windows-1251
character set, and so don't understand why an example of such a table is
so hard to find.
--
Haines Brown, KB1GRM
.
- Follow-Ups:
- Re: mapcar to convert octals to ascii
- From: David Golden
- Re: mapcar to convert octals to ascii
- From: Ralf Angeli
- Re: mapcar to convert octals to ascii
- Prev by Date: Re: Going Nuts! beep + xwin32 + emacs 21.3
- Next by Date: Re: mapcar to convert octals to ascii
- Previous by thread: Re: Going Nuts! beep + xwin32 + emacs 21.3
- Next by thread: Re: mapcar to convert octals to ascii
- Index(es):
Relevant Pages
|
|