On Wed, 15 Mar 2023 18:35:55 +0000 H.-J.
Heitländer<Heiner.Heitlaender@posteo.de> wrote:
Hi there,
trying to get my feet wet with emacs and lisp. ... well it seems I am
drowning...
The problem:
I am editing epub archives and any saves that I am doing result in
<snip>
***backtrace***
[...]
For the moment I can live with that as in reality the epub is being saved.
My problem is that from that moment on the display of the epub subfile
(<name>.html) loses the utf-8 display. (oh, and every other file is being
displayed in the same - wrong - way.)
The content is shown as (example)
<snip>
\342\200\234Nicely done. Now let\342\200\231s get that equipment on
board.\342\200\234 </p>
</snip>
It should have been shown as
<snip>
"Nicely done. Now let's get that equipment on board." </p>
</snip>
I searched the internet without any result. Don't know which part of
documentation to read.
Question: How do I switch the display back to show the contents in the
expected way???
It looks like the buffer is being displayed in the raw-text coding
system (is the first character in the mode line "t"?). \342\200\234 is
the raw-byte sequence of the unicode character LEFT DOUBLE QUOTATION
MARK (#x201c) and \342\200\231 of RIGHT SINGLE QUOTATION MARK (#x2019).
Does typing `C-x RET r' and at the prompt entering `utf-8' and at the
next prompt `yes' fix the display?
Steve Berman