From: tomas@tuxteam.de (Tomas Zerolo)
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Problem with national characters in XHTML
Date: Wed, 28 Sep 2005 12:41:09 +0200 [thread overview]
Message-ID: <20050928104109.GB8332@www.trapp.net> (raw)
In-Reply-To: <14e4cba14e7621.14e762114e4cba@net.lu.se>
[-- Attachment #1.1: Type: text/plain, Size: 1565 bytes --]
On Wed, Sep 28, 2005 at 10:29:21AM +0200, LENNART BORGMAN wrote:
> I have run into a problem with swedish national characters in an XHTML document. The header of the document is like this:
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
> "http://www.w3.org/TR/REC-html40/loose.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
Hm. Note that the header says of itself that it's encoded in utf-8. I
don't know whether it's relevant.
> The swedish character ä looks like \344 in CVS Emacs (2005-09-23).
If Emacs honors the header above, then this won't work: Octal 344 is an
a-with-dieresis, but in iso 8859-1 encoding, not utf-8.
> It looks ok in Internet Explorer, but not in Firefox.
I'd say Firefox is right on this one ;-)
Seriously: you can force the browser to assume an encoding, so what the
browser shows depends on settings which may vary from time to time. On
Firefox, it's under View -> Character Encoding. No idea about IE (and
I'm glad not to know ;-).
> Looking at the
> file with Notepad also shows the swedish characters as expected.
Notepad uses whatever encoding its font has; i guess an 8-bit fixed
encoding.
> I would be glad for some hints and pointers! I am using nxml-mode if
> that matters here.
You may try two things: changing the utf-8 in the header to iso-8859-1
or (better) insert your a-dieresis as an utf8-encoded char.
Regards
-- tomás
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2005-09-28 10:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 8:29 Problem with national characters in XHTML LENNART BORGMAN
2005-09-28 10:19 ` Jason Rumney
2005-09-28 10:22 ` David Hansen
2005-09-28 10:22 ` Paul Pogonyshev
2005-09-28 10:41 ` Tomas Zerolo [this message]
2005-09-28 10:44 ` Juanma Barranquero
2005-09-29 11:11 ` Mathias Dahl
2005-09-29 13:28 ` Piet van Oostrum
2005-09-29 13:52 ` Lennart Borgman
2005-09-28 11:09 ` Kenichi Handa
2005-09-28 14:05 ` Lennart Borgman
2005-09-28 19:12 ` Lennart Borgman
2005-09-29 8:43 ` Tomas Zerolo
2005-09-29 13:34 ` Piet van Oostrum
2005-09-29 14:02 ` Lennart Borgman
2005-09-30 22:15 ` Piet van Oostrum
2005-09-30 23:02 ` Lennart Borgman
2005-10-01 4:29 ` Tomas Zerolo
2005-10-01 11:22 ` Piet van Oostrum
-- strict thread matches above, loose matches on Subject: below --
2005-09-28 11:08 LENNART BORGMAN
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050928104109.GB8332@www.trapp.net \
--to=tomas@tuxteam.de \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.