in reply to Re: [OT] ASCII, cmd.exe, linux console, charset, code pages, fonts and other amenities
in thread [OT] ASCII, cmd.exe, linux console, charset, code pages, fonts and other amenities

thanks Corion, I read about this already but really do not understand what it really means..

chcp Active code page: 65001 perl -e "print chr($_) for 1..256" Wide character in print at -e line 1. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVW +XYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ &#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#6553 +3;&#65533; .... more of these..

Even with this codepage and in win7 I get the dreadful wide character in print message..

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
  • Comment on Re^2: [OT] ASCII, cmd.exe, linux console, charset, code pages, fonts and other amenities
  • Download Code

Replies are listed 'Best First'.
Re^3: [OT] ASCII, cmd.exe, linux console, charset, code pages, fonts and other amenities
by choroba (Cardinal) on Mar 29, 2019 at 20:59 UTC
    You need to tell Perl your terminal now works in UTF-8.
    perl -CO -we "print chr for 1 .. 255"
    An you can try higher numbers than 255, too.

    Update: Missing -e, thanks Your Mother.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]