Thread Interessanter Effekt in HTML::Entities::decode_entities()
(7 answers)
Opened by barney at 2023-12-19 17:50
Ich hab mir angeschaut was
![]() Hier ein Beispiel: [code] $ cat surrogate_pair.pl use v5.24; use strict; use warnings; use utf8; use open ':std', ':encoding(UTF-8)'; use String::Dump qw(dump_hex); use HTML::Entities qw(decode_entities); my $smile_surrogate = decode_entities('��'); say "$smile_surrogate via surrogate pair"; say dump_hex($smile_surrogate); my $smile_codepoint = decode_entities('😁'); say "$smile_codepoint via regular codepoint"; say dump_hex($smile_codepoint); $ perl surrogate_pair.pl View full thread Interessanter Effekt in HTML::Entities::decode_entities() |