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

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

Re: detect-coding-string doesn't return all possibilities


From: Jesper Harder
Subject: Re: detect-coding-string doesn't return all possibilities
Date: Sat, 15 Mar 2003 00:04:08 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux)

Kenichi Handa <handa@m17n.org> writes:

> Jesper Harder <harder@ifa.au.dk> writes:
>
>> Do you know of any other way to decide if using a given coding system
>> for decoding a string would give a valid result?

> How about this?
>
> (defun decode-coding-string-safely (string coding-system)
>   "Decode STRING by CODING-SYSYTEM and return the result.
> If STRING contains invalid byte sequence for CODING-SYSTEM, return nil."

Execellent.  Thank you!





reply via email to

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