in reply to Re^3: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
in thread Problem with escape sequence \x for hex with spaces "\x{ 263A }"
(my CMD-terminal has CP 850 so no emojis, sorry °)
C:\tmp>perl -we" binmode STDOUT, ':utf8'; print qq[\x{263A}] " Ôÿ║ C:\tmp>perl -CO -wde0 ... main::(-e:1): 0 DB<1> print "\x{263A}" Ôÿ║ DB<2>
°) ah found the way to change the codepage
C:\tmp>CHCP 65001 Aktive Codepage: 65001. C:\tmp>perl -CO -wde0 ... yadda yadda ... DB<1> print "\x{263A}" ☺ DB<2>
PM's codeblocks are limited here², thats what I see ---> ☺ (sic)
²) or with <pre><tt> tags instead
C:\tmp>perl -CO -wde0
...
DB<1> print "\x{263A}"
☺
DB<2>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Problem with escape sequence \x for hex with spaces "\x{ 263A }" (update: codepage)
by kcott (Archbishop) on Jun 11, 2022 at 19:03 UTC | |
by LanX (Saint) on Jun 11, 2022 at 19:40 UTC | |
|
Re^5: Problem with escape sequence \x for hex with spaces "\x{ 263A }"
by Your Mother (Archbishop) on Jun 11, 2022 at 10:55 UTC |