From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, Wenlong Dai <whudwl@gmail.com>,
notmuch@notmuchmail.org
Subject: Re: Why some characters are not displayed correctly when setting mm-text-html-renderer to links
Date: Mon, 09 Aug 2021 23:13:53 +0300 [thread overview]
Message-ID: <m27dguz88u.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <877dgyv29e.fsf@tethera.net>
On Fri, Aug 06 2021, David Bremner wrote:
> Wenlong Dai <whudwl@gmail.com> writes:
>
>>
>> After some research, I found that setting mm-text-html-renderer to links
>> would reduce the load time from <a long time>
>> to around 2 seconds or less. But one small issue with this is some
>> characters are not displayed correctly, for example the
>> RIGHT SINGLE QUOTATION MARK, which would be displayed as \342\200\231
>>
>
> I didn't have time to debug this yet, but I did duplicate the problem on
> Emacs 27.1 on Debian, so it is not Windows or gccemacs specific. As far
> as I can tell links is outputing non-utf8 characters, but it could also
> be other issues like double decoding.
setting those "coding-systems" is somewhat hard to understand (or it is
just me) -- i recall wondering these
(let ((coding-system-for-read 'no-conversion))
iirc in related code...
One thing could be to wrap the 'links' command in a shell script
which executes
exec strace -o /tmp/strace.$$ -e trace=open /path/to/links "$@"'
(name that script as 'links' and point first entry in PATH to the
directory that exists)
then one can check the logs what is links outputting (i'd guess it
would output utf-8 characters but one cannot know for sure...)
Tomi
>
> d
next prev parent reply other threads:[~2021-08-09 20:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-16 15:00 Why some characters are not displayed correctly when setting mm-text-html-renderer to links Wenlong Dai
2021-08-06 18:47 ` David Bremner
2021-08-09 20:13 ` Tomi Ollila [this message]
2021-09-26 11:24 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m27dguz88u.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=whudwl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).