First things first, using print to output a generated character works fine:
>perl -CS -le"print chr(0x2190)" ←
Even using with the parens you used
>perl -CS -le"print qq{(\x{2190})}"
(←)
And if fed the UTF8 encoded character, it's understood..
>perl -CS -le"print chr(0x2190)" | perl -CS -le"use Devel::Peek; Dump($x=<>)"
SV = PV(0x226144) at 0x225ff4
REFCNT = 1
FLAGS = (POK,pPOK,UTF8)
PV = 0x182ce3c "\342\206\220\n"\0 [UTF8 "\x{2190}\n"]
CUR = 4
LEN = 80
However, I can't seem to paste the character into the console.
>perl -CS -le"use Devel::Peek; Dump($x=<>)" a←b SV = PV(0x226144) at 0x225ff4 REFCNT = 1 FLAGS = () PV = 0x182ce3c ""\0 ← The whole line is dropped!!! CUR = 0 LEN = 80
Alt-2190 doesn't work, but then again, it doesn't work in notepad either.
This was ActivePerl 5.8.8 on Windows XP
In reply to Re: Unicode input in windows xp (cmd.exe)
by ikegami
in thread Unicode input in windows xp (cmd.exe)
by nadroj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |