mapcar to convert octals to ascii



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



.



Relevant Pages

  • Re: Inserting a CENT current symbol in a unix file
    ... You have to specify the character set ... and the file encoding you want! ... Since I configured my emacs to use the iso-8859-15 ... character set in plain binary with unix line terminator encoding to ...
    (comp.unix.admin)
  • Re: Inserting a CENT current symbol in a unix file
    ... You have to specify the character set ... and the file encoding you want! ... Since I configured my emacs to use the iso-8859-15 ... character set in plain binary with unix line terminator encoding to ...
    (comp.unix.questions)
  • Re: Inserting a CENT current symbol in a unix file
    ... You have to specify the character set ... and the file encoding you want! ... Since I configured my emacs to use the iso-8859-15 ... character set in plain binary with unix line terminator encoding to ...
    (comp.unix.programmer)
  • Re: Inserting a CENT current symbol in a unix file
    ... You have to specify the character set ... and the file encoding you want! ... Since I configured my emacs to use the iso-8859-15 ... character set in plain binary with unix line terminator encoding to ...
    (comp.unix.shell)
  • Re: Great SWT Program
    ... bump-mapped or ray-traced editor windows? ... /not/ among the powers of modern graphics hardware. ... being any random person from the huge class you've been peddling emacs ... able to display them is beside the point - you could happily make one ...
    (comp.lang.java.programmer)