Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: "Can't rfc2047-encode" error.
Date: Thu, 04 Aug 2005 21:30:19 +0900	[thread overview]
Message-ID: <b4mzmrxj350.fsf@jpl.org> (raw)
In-Reply-To: <hhk6j2vszp.fsf@blah.pl>

>>>>> In <hhk6j2vszp.fsf@blah.pl> Maciej Matysiak wrote:

> On the 4th of August 2005 at 12:55, Katsumi Yamaoka <yamaoka#jpl.org> wrote:

>> (let ((mm-coding-system-priorities '(iso-8859-2)))
>>   (nnrss-mime-encode-string "ó"))
>>  => "=?iso-8859-2?Q?=F3?="

> And what is that "^[-A" before "ó" in that backtrace?

I don't know but...

>> The text in question seems to have been modified by the debugger
>> or something.

> This feed is natively encoded with UTF-8:
> <?xml version="1.0" encoding="utf-8"?>

>> Aren't you using the Mule-UCS XEmacs package?

> Yes, I am.

I see.

>> +	 (delete-region (point-min) (point-max)))))

> That fixed the problem (I don't see the error anymore), but the message
> in RSS group has empty subject. I can live with that :)

I found a better solution than that.  Here it is:

(defadvice mm-find-mime-charset-region (after return-utf-8 activate)
  "Return `(utf-8)' even if other charsets are detected."
  (if (memq 'utf-8 ad-return-value)
      (setq ad-return-value '(utf-8))))

> If you want to debug that further, the RSS feed is available at:
>  http://allegro.pl//static/rss/55/new1/rss.rss
> The problematic item has "item=59527061" in its url, you can search for
> that string.

Thanks.  I've gotten the correct contents.  Now I suspect there's
a bug in the part for XEmacs of the mm-find-mime-charset-region
function.

(mm-with-multibyte-buffer
  (insert "Przejściówka ST ---&gt; VGA - z dźwiękiem!!!")
  (mm-find-mime-charset-region (point-min) (point-max)))

It should return `(utf-8)' but...



  reply	other threads:[~2005-08-04 12:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 12:43 Maciej Matysiak
2005-07-11 13:57 ` Katsumi Yamaoka
2005-08-04  9:18   ` Maciej Matysiak
2005-08-04 10:55     ` Katsumi Yamaoka
2005-08-04 11:31       ` Maciej Matysiak
2005-08-04 12:30         ` Katsumi Yamaoka [this message]
2005-08-04 13:58           ` Maciej Matysiak
2005-08-05  6:58             ` Katsumi Yamaoka

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=b4mzmrxj350.fsf@jpl.org \
    --to=yamaoka@jpl.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.
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 NNTP newsgroup(s).