emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.brand@alumni.ethz.ch>
To: David Maus <dmaus@ictsoc.de>
Cc: julien@danjou.info, Org Mode <emacs-orgmode@gnu.org>,
	zwz <zhangweize@gmail.com>
Subject: Re: org-feed XML entities and character encoding
Date: Fri, 13 Aug 2010 21:03:52 +0200	[thread overview]
Message-ID: <4C659718.9060906@alumni.ethz.ch> (raw)
In-Reply-To: <8762ze7bc8.wl%dmaus@ictsoc.de>

Hi David

On 10-08-13 17:59 , David Maus wrote:
>> 2. request for help about an issue with multibyte character encoding
>> ====================================================================
>>
>> There is an issue with multibyte characters that appear in the input
>> as unescaped, multibyte encoded characters (not as XML entities, as XML
>> entities multibyte characters are simply substituted correctly). I
>> looked for an example with a character encoding specified in the first
>> line of the XML feed like
>> <?xml version="1.0" encoding="utf-8"?>
>> and found one here:
>> http://www.openscreencast.de/blog/rss.xml
>> [...]
>
> The problem with this feed is, that it contains raw unicode characters
> that must be converted to utf-8 before they can be properly inserted
> in the target buffer.
>
> Attached patch does this by explicitely decoding new entries according
> to their detected character encoding.
>
> Btw.: Helpful introduction to the topic gives
>
> The Absolute Minimum Every Software Developer Absolutely, Positively
> Must Know About Unicode and Character Sets (No Excuses!)
>
> by Joel Spolsky
>
> http://www.joelonsoftware.com/articles/Unicode.html

Thank you very much for your patch, it resolves this issue with
org-feed.el like expected. I tested your patch with the two feeds
http://www.openscreencast.de/blog/rss.xml  (declared utf-8)
and
http://pod.drs.ch/world_music_special_mpx.xml  (not declared utf-8)
described more by me earlier and a dozen other feeds, all with
character encoding utf-8.

Michael

      reply	other threads:[~2010-08-13 19:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 19:59 org-feed XML entities and character encoding Michael Brand
2010-08-13 15:59 ` David Maus
2010-08-13 19:03   ` Michael Brand [this message]

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C659718.9060906@alumni.ethz.ch \
    --to=michael.brand@alumni.ethz.ch \
    --cc=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=julien@danjou.info \
    --cc=zhangweize@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://git.savannah.gnu.org/cgit/emacs/org-mode.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).