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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Heiko Schlittermann
Päiväys:  
Vastaanottaja: exim-dev
Aihe: 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