From: "Andreas Röhler" <andreas.roehler@online.de>
To: help-gnu-emacs@gnu.org
Cc: William Xu <william.xwl@gmail.com>
Subject: Re: url-retrieve and utf-8
Date: Mon, 4 Feb 2008 17:02:27 +0100 [thread overview]
Message-ID: <200802041702.27763.andreas.roehler@online.de> (raw)
In-Reply-To: <m2ve543n9t.fsf@gmail.com>
Am Montag, 4. Februar 2008 13:43 schrieb William Xu:
> 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.
AFAIS that's not a mistake, that's implemented
See elisp info node 34.3.1.2 Character Classes
`[:space:]'
This matches any character that has whitespace syntax (*note
....
Here is a table of syntax classes, the characters that stand for them,
their meanings, and examples of their use.
-- Syntax class: whitespace character
"Whitespace characters" (designated by ` ' or `-') separate
symbols and words from each other. Typically, whitespace
characters have no other syntactic significance, and multiple
whitespace characters are syntactically equivalent to a single
one.
======> Space, tab, newline and formfeed <============
are classified as
whitespace in almost all major modes.
;;;;;;;
[:blank:] should DTRT.
Andreas Röhler
next prev parent reply other threads:[~2008-02-04 16:02 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
2008-02-04 16:02 ` Andreas Röhler [this message]
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=200802041702.27763.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=help-gnu-emacs@gnu.org \
--cc=william.xwl@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 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.