help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url-retrieve and utf-8


From: William Xu
Subject: Re: url-retrieve and utf-8
Date: Mon, 04 Feb 2008 21:43:26 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (darwin)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]