in reply to UTF8 Output with XML::Feed?
It tells Perl to treat the source code as utf8 instead of ASCII and this includes literal strings like 'abc...åäö'
See utf8 for more.
This
åäö
looks very much like use utf8 is missing.
Without Perl will interpret the multibyte characters as single bytes.
U+00E5 å c3 a5 LATIN SMALL LETTER A WITH RING ABOVE
hence
Ã¥
in HTML encoding of single bytes.
use utf8
will activate the utf8 flag for variables populated from literal strings, in order to treat multibytes as character strings.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: UTF8 Output with XML::Feed? (use utf8)
by mldvx4 (Hermit) on Mar 07, 2022 at 17:55 UTC | |
by kcott (Archbishop) on Mar 07, 2022 at 18:47 UTC | |
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 | |
by LanX (Saint) on Mar 07, 2022 at 20:02 UTC |