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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jeremy Harris
日付:  
To: exim-dev
題目: 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