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

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-dev
Subject: 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