From: Eli Zaretskii <eliz@gnu.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 6971-done@debbugs.gnu.org
Subject: bug#6971: bug#6974: Emacs doesn't like Swedish ä (on w32)
Date: Sat, 04 Sep 2010 11:16:32 +0300 [thread overview]
Message-ID: <838w3hj53z.fsf@gnu.org> (raw)
In-Reply-To: <4C81F5AF.6010001@easy-emacs.de>
> Date: Sat, 04 Sep 2010 09:30:55 +0200
> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
> CC: bug-gnu-emacs@gnu.org
>
> > Please post the file as an attachment.
> >
>
> Attached.
Thanks. Here's your culprit:
> > \240 (autoload 'muse-mode "muse-mode" "" t)
You have literal \240 characters in the file, which are invalid UTF-8
sequences.
This file has also other similar problems, like this one:
Du kannst es nat\365\202\211\205\365\200\210\246\357\275\357\275\274rlich auch unter Linux ausprobieren, z.B.:
I believe the 4th word should have been "natűrlich", and the invalid
long byte sequence instead of ű (which Emacs decodes into some
Japanese Kanji character that cannot be encoded by UTF-8) is the
result of multiple saving of this file with incorrect encoding.
To fix all this corruption, I suggest the following steps:
1) C-x RET c utf-8 RET C-x C-f befehle.txt RET
2) M-: (unencodable-char-position (point) (point-max) 'utf-8) RET
3) Go to the position shown by the previous command, and edit the
file to replace invalid bytes with valid characters.
4) Move point past the corrected portion.
5) Go back to 2. When unencodable-char-position returns nil, you
are done; save the file.
I'm closing bug #6971 with this message, since there's no Emacs bug
here.
next prev parent reply other threads:[~2010-09-04 8:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 21:58 bug#6974: Emacs doesn't like Swedish ä (on w32) Lennart Borgman
2010-09-03 1:44 ` Jason Rumney
2010-09-03 11:20 ` Lennart Borgman
2010-09-03 8:03 ` Andreas Röhler
2010-09-03 9:01 ` Eli Zaretskii
2010-09-03 9:46 ` Andreas Röhler
2010-09-03 13:49 ` Eli Zaretskii
2010-09-03 16:23 ` Andreas Röhler
2010-09-03 17:59 ` Eli Zaretskii
2010-09-03 19:33 ` Andreas Röhler
2010-09-03 21:05 ` Eli Zaretskii
2010-09-04 6:22 ` Andreas Röhler
2010-09-04 6:43 ` Eli Zaretskii
2010-09-04 7:30 ` Andreas Röhler
2010-09-04 8:16 ` Eli Zaretskii [this message]
2010-09-03 8:08 ` Eli Zaretskii
2010-09-03 11:19 ` Lennart Borgman
2010-09-03 11:59 ` Lennart Borgman
2010-09-03 13:38 ` bug#6974: " Eli Zaretskii
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://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838w3hj53z.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=6971-done@debbugs.gnu.org \
--cc=andreas.roehler@easy-emacs.de \
/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://git.savannah.gnu.org/cgit/emacs.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).