in reply to Perl's encoding versus UTF8 octets
When I run your code from Komodo IDE which understands UTF8 it prints:
Content-Type:text/html; charset=utf-8 Content-Language: utf8; <p>ä <span class="sy">ä</span>, <span class="sy">Ä</span><span clas +s="posg pos">Substantiv, Neutrum, das</span><span class="vg v"> Ä &# +603;ː das ä; Genitiv: des ä (umgangssprachlich: -s), ä (umgangss +prachlich: -s) </span></p>
Is that not what you expected to see? Maybe the terminal you are using doesn't understand UTF8?
Update: note that you don't need use utf8;. That is only required if you want to use UTF8 in your source code. You don't do that, you create a string containing UTF8 characters, but the source code is pure 7 bit ASCII.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl's encoding versus UTF8 octets
by Polyglot (Chaplain) on Jan 13, 2021 at 05:27 UTC | |
by GrandFather (Saint) on Jan 13, 2021 at 05:57 UTC | |
by Polyglot (Chaplain) on Jan 13, 2021 at 07:00 UTC |