Re: CHAT: TECH: utf-8 in Perl comments
From: | Benct Philip Jonsson <bpj@...> |
Date: | Wednesday, December 3, 2008, 8:37 |
On 2008-12-02 Mark J. Reed wrote:
> AFAIK, best practice for Perl 5 is to use UTF-8-encoded
> source with
> the "use utf8" pragma.
I just found out a good situation to use the \x{}
syntax: when the string consists only of
(a) Combining Diacritical Mark(s). Properly
these should be displayed as spacing in
monowidth fonts but in practice there is only
mind-boggling inconsistency: sometimes they appear
as spacing, sometimes above the preceding char
and sometimes above the following char, i.e.
often enogh overstruck on a quote char...
I wish there were a quote operator which took
its argument as a string, ignoring any leading
or trailing whitespace, pending correctly behaving
monowidth fonts.
/BP
Reply