all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William Xu <william.xwl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: url-retrieve and utf-8
Date: Mon, 04 Feb 2008 17:28:34 +0900	[thread overview]
Message-ID: <m2zluhm8gd.fsf@gmail.com> (raw)

How to correctly handle utf-8 encoded html pages fetched by
url-retrieve? Or is there a way to specify a coding system for
read/write in the buffer returned by url-retrieve?

At present, I tried to call: 

  (decode-coding-string (buffer-string) 'utf-8)

But the result is only partially correct. For example, when there are a
mix of ascii and japanese characters, it only returns the ascii part.

-- 
William

http://williamxu.net9.org





             reply	other threads:[~2008-02-04  8:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04  8:28 William Xu [this message]
2008-02-04 12:43 ` url-retrieve and utf-8 William Xu
2008-02-04 16:02   ` Andreas Röhler
2008-02-05  3:55     ` William Xu
2008-02-05 10:50       ` Andreas Röhler
2008-02-06  6:28         ` William Xu
2008-02-05 20:02       ` Andreas Röhler
2008-02-06  6:34         ` William Xu
2008-02-06 12:36           ` Andreas Röhler
     [not found]     ` <mailman.6982.1202183739.18990.help-gnu-emacs@gnu.org>
2008-02-06 15:09       ` Stefan Monnier
2008-02-07  8:05         ` William Xu
     [not found]         ` <mailman.7082.1202371563.18990.help-gnu-emacs@gnu.org>
2008-02-08  3:06           ` Stefan Monnier
     [not found]           ` <foefpr$ifg$1@news.sap-ag.de>
2008-02-08  4:30             ` William Xu

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=m2zluhm8gd.fsf@gmail.com \
    --to=william.xwl@gmail.com \
    --cc=help-gnu-emacs@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.