Re: [exim-dev] UTF-8 and Exim string operations

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Heiko Schlittermann
Date:  
À: exim-dev
Sujet: Re: [exim-dev] UTF-8 and Exim string operations
Heiko Schlittermann <hs@???> (Sa 18 Aug 2018 09:29:50 CEST):
> > This.
> >
> > Add new operators, or options on current ones; don't
> > change how they currently work (barring bugs).
>
> +1


After a little bit more thinking

    ${astrlen:Ötzi} yields 5
    ${ustrlen:Ötzi} yields 4



    ${strlen:…} is equivalent to ${atrlen:…}


And a new addtional main option

    string_encoding = ascii | utf8  (default: ascii)


which can then switch ${strlen:…} to be equivalent to ${ustrlen:…}

--
Heiko