in reply to Re^3: Bypass utf-8 encoding/decoding?
in thread Bypass utf-8 encoding/decoding?
Quite right, of course. But I was surprised today while playing with using the official name for Unicode characters to find that it's not needed in that case:
use strict; use warnings; use feature 'say'; #use utf8; use open qw( :encoding(UTF-8) :std ); say "\N{FATHER CHRISTMAS} thanks you for all your hard work tonight"; __END__
🎅 thanks you for all your hard work tonight
use strict; use warnings; use feature 'say'; #use utf8; use open qw( :encoding(UTF-8) :std ); say "🎅 thanks you for all your hard work tonight"; __END__
ð thanks you for all your hard work tonight
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Bypass utf-8 encoding/decoding?
by 1nickt (Canon) on Dec 01, 2017 at 14:01 UTC | |
by karlgoethebier (Abbot) on Dec 01, 2017 at 16:39 UTC |