in reply to Re^3: german Alphabet
in thread german Alphabet
Perl assumes ASCII, not latin-1.
$ perl -Mutf8 -MEncode -e'print encode("latin-1", "sub fête {}\n");' \ | perl Illegal declaration of subroutine main::f at - line 1.
If you happen to use an 8-bit byte in string literal, a character with the value of the byte will be created rather than throwing an error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: german Alphabet
by Anonymous Monk on Dec 15, 2018 at 19:51 UTC | |
by ikegami (Patriarch) on Dec 16, 2018 at 19:53 UTC | |
by Anonymous Monk on Dec 16, 2018 at 21:47 UTC |