Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Unicode again, in Win7 cmd

by choroba (Canon)
on Jun 07, 2013 at 11:58 UTC ( #1037663=note: print w/ replies, xml ) Need Help??

in reply to Re: Unicode again, in Win7 cmd
in thread Unicode again, in Win7 cmd

Nice. On my utf-8 terminal:

echo ╱╲ | iconv -f utf8 -t cp1252
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re^2: Unicode again, in Win7 cmd
Replies are listed 'Best First'.
Re^3: Unicode again, in Win7 cmd
by hdb (Prior) on Jun 07, 2013 at 12:06 UTC

    Now this works (prints black spade suit):

    system( "chcp 65001" ); print "\xe2\x99\xa0\n";

    It seems that the font I am using "Lucida Console" (and the other fonts offered in "Properties") just has no entries for the diagonals :-<

    A quick look into the "Character Map" tool confirms this. All this time wasted...

    Thanks for all your replies. From here I guess I need to find out which fonts have the diagonals and how can I get cmd.exe to use one of them. But this is not a Perl question.

      BTW, if you find a matching font, you need to enable it in the registry:

      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Consol +e\TrueTypeFont


      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Consol +e\RasterFonts

      ...a new string value, e.g. 00, 01.. where the value is your font - reboot required :-(

      Unfortunately i couldn't figure out the right one yet ;-(

      Regards, Karl

      The Crux of the Biscuit is the Apostrophe

        There is "Arial Unicode MS" which has the diagonals. While your advice is good, I cannot implement it due to the lack of admin rights. :(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1037663]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2015-11-30 10:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls