in reply to Re^2: UTF8 Output with XML::Feed? (use utf8)
in thread UTF8 Output with XML::Feed?
"For what it's worth, the following appears to produce only a blank line."
Please go back and (re)read the utf8 documentation; paying particular attention to the very clear and emboldened directive:
Do not use this pragma for anything else than telling Perl that your script is written in UTF-8.
The code you presented only contains 7-bit ASCII characters.
You got what appeared to be a blank line. Here are some things you could have tried:
$ perl -e 'print "\N{LATIN SMALL LETTER A WITH RING ABOVE}\n";' $ perl -e 'print "|\N{LATIN SMALL LETTER A WITH RING ABOVE}|\n";' | | $ perl -C -e 'print "\N{LATIN SMALL LETTER A WITH RING ABOVE}\n";' å $ perl -e 'use open OUT => qw{:encoding(UTF-8) :std}; print "\N{LATIN +SMALL LETTER A WITH RING ABOVE}\n";' å
See: perlrun for -C; and, the open pragma.
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: UTF8 Output with XML::Feed? (updated)
by LanX (Saint) on Mar 07, 2022 at 20:09 UTC | |
by pryrt (Abbot) on Mar 07, 2022 at 20:28 UTC | |
by LanX (Saint) on Mar 07, 2022 at 20:46 UTC | |
by kcott (Archbishop) on Mar 08, 2022 at 01:44 UTC |