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

Pàgina inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
A: exim-dev
Assumpte: Re: [exim-dev] UTF-8 and Exim string operations
On 08/18/2018 08:38 AM, Heiko Schlittermann via Exim-dev wrote:
> And a new addtional main option
>
>     string_encoding = ascii | utf8  (default: ascii)

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


I'm not particularly happy about global mode-switches. Too much
scope for "oops!".


Doing it as an option would look like ${strlen/utf8:...}
modulo choice of the option separator. We don't currently
have any expansion operators that use options, which is
a mark against going that way.
--
Cheers,
Jeremy