GNU bug report logs - #68971
Innocent file renders crazy

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 7 Feb 2024 14:19:01 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dan Jacobson <jidanni <at> jidanni.org>
Cc: 68971 <at> debbugs.gnu.org
Subject: bug#68971: Innocent file renders crazy
Date: Wed, 07 Feb 2024 17:00:13 +0200
tags 68971 notabug
thanks

> Date: Wed, 07 Feb 2024 22:17:58 +0800
> From: Dan Jacobson <jidanni <at> jidanni.org>
> 
> There is something crazy about this attached file that causes emacs to
> display tons of weird characters.
> $ md5sum metadata.html
> 42c875bae87988bbbd4db481b873bc1a metadata.html
> $ emacs -Q metadata.html #crazy!
> GNU Emacs 29.1

It's this part:

  <html lang="en"><head><META http-equiv="Content-Type"
  content="text/html; charset=utf-16"><font face="calibri"><title>
                      ^^^^^^^^^^^^^^

UTF-16 encodes each character below 0x10000 with 2 bytes, so you get
this gibberish if you try to display plain ASCII text as if it were
UTF-16.

This is not a bug.




This bug report was last modified 1 year and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.