unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: William Xu <william.xwl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: url-retrieve and utf-8
Date: Mon, 04 Feb 2008 21:43:26 +0900	[thread overview]
Message-ID: <m2ve543n9t.fsf@gmail.com> (raw)
In-Reply-To: m2zluhm8gd.fsf@gmail.com

William Xu <william.xwl@gmail.com> writes:

> 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.

For this, it is because I have called (skip-chars-backward
"[[:space:]]") before decode-coding-string, and apprarently
skip-chars-backward seems mistook some non-ascii characters as
whitespaces.

-- 
William

http://williamxu.net9.org





  reply	other threads:[~2008-02-04 12:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04  8:28 url-retrieve and utf-8 William Xu
2008-02-04 12:43 ` William Xu [this message]
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

  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=m2ve543n9t.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.
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).