[Top][All Lists]

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

Re: eww doesn't decode %AA%BB%CC URL names

From: Lars Ingebrigtsen
Subject: Re: eww doesn't decode %AA%BB%CC URL names
Date: Thu, 24 Dec 2015 20:55:13 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> That's basically just (car (decode-coding-string ...))
> I believe you meant detect-coding-string.

Yup.  :-)

>> though, since it'll return utf-8 first if that's a possible charset,
>> won't it?
> You cannot rely on it returning UTF-8, that depends on coding
> priorities (that are subject to customizations) and other things.
> I think you should use UTF-8 literally as the first choice.

Right.  How do I check whether the bytes are a valid utf-8 sequence,
though?  I thought I remembered something called
`valid-something-something-p', but I can't find it now...

> Yes, they use these in preference to everything else, something like
> this:
>   (let ((coding (or coding-system-for-read
>                     document-encoding
>                   locale-coding-system
>                     ...)))
>       (decode-coding-string ... coding))


(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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