[PATCH] Check if DLD contains non-ascii characters

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 26 13:06:53 PDT 2013


On 26 March 2013 21:59, Miika Turkia <miika.turkia at gmail.com> wrote:
> Valid divelogs.de export might contain non-ascii characters in CDATA
> fields as long as these characters are found in iso-8859-1. So we'll
> have to test to make sure the content is fully ascii before calling
> xmlStringLenDecodeEntities to decode possible character references.
>
> Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
> ---
> I wonder if there is a function available to do all this in one go. But
> this patch gets the job done...

yep, it works. i can't seem to find a function for that in glib.

Acked-by: Lubomir I. Ivanov <neolit123 at gmail.com>

lubomir
--


More information about the subsurface mailing list