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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Heiko Schlittermann
Dátum:  
Címzett: exim-dev
Tárgy: 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